Axes3d vs axes3d matplotlib

I just finished the horrible installation of scipy, numpy and matplotlib on OSX Lion. For some reason I can not do:

import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3d 

Error output:

 Traceback (most recent call last): File "3dPlot.py", line 2, in <module> from mpl_toolkits.mplot3d import Axes3d ImportError: cannot import name Axes3d 

but i can do:

 import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3d 

Is there a difference between Axes3d and axes3d, or is my file just named lowercase "a" for some reason?

+4
source share
1 answer

The following two things work for me (see your capitalization):

 from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d import axes3d 

But I get the same error for what you wrote (from d to 3d in lowercase). Note that the two imports that work are not equivalent.

+4
source

All Articles