Simple plot in python of a numpy array?

matplotlib.pyplot is a module; the function to plot is matplotlib.pyplot.plot. Thus, you should do

plt.plot(cplr)
plt.show()

A good place to learn more about this would be to read a matplotlib tutorial.

Leave a Comment