from math import sin import matplotlib.pyplot as plt x_verdier = [x/10 for x in range(301)] y_verdier = [sin(x) for x in x_verdier] plt.plot(x_verdier, y_verdier, c='r') plt.show()