2mark Answers
2mark Answers
Egvrban fxample
45
35
30
2.0t
30 4.
|.5 20 25
X-axis
MATPLOTL|8
3 DIMENSIONAL DRAWING IN
tinpost matplotib pPplot as plt
tiom mplloolkis . mplot 3d
rpoht Axes3D
ripOst
plt fgul)
l!,
ty acd ubplot C
# Gnenalirg data
np. andom.standasd.neima Ioo)
hp. iandom .otadadnpsmal libo)
-2
A IMRTANT TCATURES F MATPIOTIB
wde Hang of plottnq: Natplotib proites a
vahtty of potttg oton 6 ihckrdungaplot
lre plots
ele
Hapob, t ,bas, charh , hstoqams,
(DPubicafo Buabty plot : allbos utmalio
erey aspt a plot- totos toot lebe styles.
o afng
onnot publioto
Qnablotg te scats
quauby gAaphis. f chtegsatee
Tntegiator ws Jupyte noteboks :
) vitaacte plotng
Typles neftbpoki. alleng
anel aligate f data usthcs he
quucb
erribonrnlnt
Multplo lotfoms and 4o tohmat t
ySupport Qekos vasis platom
Matplotlab wnks amlesy
6upo B nuneiCL
and
( WndoUs, malOs, diiuy )
4 SvNTAX C ScATTEB()
usd to (aale a sitca plot
Sateac) -
tmpost matplotlib. PHplct ptae dit o CAayA
T
i plt xlabel
pt yeabe ('Seata Pot Zrnplo
plt. He
pt.tigerd ()
enabes that
aay wica povides
-to a gt *
tos plotts os lvahaliga
one quaihy
bllo tache stale CHOake tbUxd
ihon lbnay
Py fu visualinatuon Data x
MATPLOTAIB (1)
Tes PlSpeiaized
ot
Drtegtis
cito *
Pandas
4ecteSi
aalgato'
chatng roceis
b. thsinclihes
e >
omplex
quaphiu ötat
shal itoarrte orttacckre
ibnany viaalgat datn pytion A’
SEABORN (6)
DENSITYa CoNaJe lor
2 3
JNE Pp1
(8,5))
(lxo,
, lstyb: nlucth s3
ptplol X,y, latel ='So
livstoo=l heoas
CX, y, kabel= lost
plk plot
haskes to Berne pou
#Addue q yC:,'o', colol- Gruen
plot ( xG:10) ,
plt
pltae ('arb )
dit hyla'
tte cdune Pot w'h
pl Lgndc
plt Bhawl)
Plot uih fecnt Shytes
01