Open in CoCalc
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-5,5,100) plt.plot(x,np.sin(x)) # on utilise la fonction sinus de Numpy plt.ylabel('fonction sinus') plt.xlabel("l'axe des abcisse") plt.show()
[<matplotlib.lines.Line2D object at 0x7f2dd25d9490>] <matplotlib.text.Text object at 0x7f2dd27a6510> <matplotlib.text.Text object at 0x7f2dd27827d0>