import matplotlib.pyplot as plt #define x and ysin plt.plot(x,ysin,label='sin(x)') plt.legend() plt.show()