python 5 - Matplotlib Flashcards
(4 cards)
1
Q
à quoi sert Matplotlib ?
A
C’est une bibliothèque puissante et flexible pour créer des graphiques et des visualisations en Python.
2
Q
commande pour import matplotlib ?
A
import matplotlib.pyplot as plt
3
Q
Comment créer un graphique simple ?
A
dates= np. (un tableau en gros)
dtype= np. (un tableau en gros)
plt.plot(dates, price)
plt.title(“Prix du cours de bourse”)
plt.xlabel(“Date”)
plt.ylabel(“Prix”)
plt.show()
4
Q
A