Formation 90 minitra famakiana Fanehoana angona

πŸ“¦ Fanehoana miaraka amin'ny Matplotlib

Python & Data Science Toko : Fanehoana angona Ampahatoko : 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()\n

Ohatra azo ampiharina

πŸ’» Ohatra : Graphique varotra\n
PYTHON
\nimport matplotlib.pyplot as plt\nplt.plot(["Jan", "Fev"], [1000, 1200])\nplt.show()\n

Fomba 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