import matplotlib.pyplot as plt import numpy as np import scipy as sci xdata = np.linspace(-1,1,50) ydata = np.array(np.random.uniform(-1,1,50)) figure,axs = plt.subplots() axs.set_title('premier exemple') axs.set_xlabel(' x axis') axs.set_ylabel(' y axis') axs.plot(xdata, ydata, label='sample data') axs.plot(xdata, xdata**2, label='quadratic') axs.plot(xdata,'s',label='raw xdata') axs.legend() plt.show()