I imported matplotlib in the way like this:
import matplotlib as mpl
A error saying 'module' object has no attribute 'pylab' was thrown out when i run the following code:
x = np.arange(0,10,0.01) # import numpy as np
y = np.sin(x)
mpl.pylab.plot(x,y)
mpl.pylab.show()
And there was no error appears when i imported matplotlib in another way:
import matplotlib.pylab as pl
Is there anybody knows what happend?