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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

commande pour import matplotlib ?

A

import matplotlib.pyplot as plt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly