Python Tutorial

Sous-parcelle Matplotlib

importer matplotlib.pyplot en tant que plt
importer numpy en tant que np

x = np.tableau([0,
1, 2, 3])
y = np.tableau([3, 8, 1, 10])

plt.subplot(2, 3, 1)
plt.plot(x,y)

x = np.tableau([0, 1, 2, 3])
y = np.tableau([10, 20, 30,
40])

plt.subplot(2, 3, 2)
plt.plot(x,y)

x = np.tableau([0, 1,
2, 3])
y = np.tableau([3, 8, 1, 10])

plt.subplot(2, 3, 3)
plt.plot(x,y)

x = np.tableau([0, 1, 2, 3])
y = np.tableau([10, 20, 30, 40])

plt.subplot(2, 3, 4)
plt.plot(x,y)

x = np.tableau([0, 1, 2, 3])
y = np.tableau([3, 8, 1, 10])

plt.subplot(2, 3, 5)
plt.plot(x,y)

x = np.tableau([0, 1, 2, 3])
y = np.tableau([10, 20, 30, 40])

plt.subplot(2, 3, 6)
plt.plot(x,y)

plt.show()

#Sousparcelle #Matplotlib

Articles similaires

Bouton retour en haut de la page