from matplotlib import pyplot as plt plt.plot([1,2,3,4,5]) plt.ylabel("Y axis") plt.xlabel("X axis") plt.show()