import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 2*np.pi, 100) sinX = np.sin(x) cosX = np.cos(x) plt.plot(x, sinX) plt.plot(x, cosX) plt.show()