import numpy as np import matplotlib.pyplot as plt # create two NumPy arrays, representing a graph of the cosine x = np.linspace(-10.0, 10.0, 400) y = np.cos(x) # do the plot plt.plot(x, y) plt.show()