Formation
90 minitra famakiana
Fanehoana angona
π¦ Fanehoana miaraka amin'ny Matplotlib
Tanjon'ny fampianarana
π― Tanjona :\n
1Mamorona graphique linΓ©aire\n2. Mamorona graphique barres\n3. Mamorona histogramme\n4. Manamboatra graphique
Fampidirana
π Matplotlib no tranomboky fanehoana be mpampiasa indrindra amin'ny Python.
Votoatiny teorika
Matplotlib :\n
PYTHON
\nimport matplotlib.pyplot as plt\nplt.plot([1,2,3], [4,5,6])\nplt.show()\nOhatra azo ampiharina
π» Ohatra : Graphique varotra\n
PYTHON
\nimport matplotlib.pyplot as plt\nplt.plot(["Jan", "Fev"], [1000, 1200])\nplt.show()\nFomba tsara
1Ataovy import plt foana\nβ
2. MampiasΓ figure() ho an'ny habe\nβ
3. Ampio lohateny sy marika\nβ
4. MampiasΓ grid() mba hamakiana\nβ
5. tight_layout() mba hisorohana fifandona
Zavatra tokony hofadiana
Manadino ny plt.show()\n
Antsoy foana ny plt.show()
Famintinana
plot() : graphique linΓ©aire\nβ
bar() : graphique barres\nβ
hist() : histogramme\nβ
title(), xlabel(), ylabel() : marika\nβ
legend() : fanazavana\nβ
grid() : tambajotra\nβ
show() : fampisehoana
Loharano fanampiny
π matplotlib.org/stable/tutorials/index.html