import matplotlib.pyplot as plt import numpy as np x=np.linspace(-5,5,300) x1=np.sin(x) x2=np.cos(x) plt.plot(x,x1) plt.plot(x,x2) plt.show()