From: Benjamin R. <ben...@ou...> - 2010-11-16 17:10:01
|
On Tue, Nov 16, 2010 at 10:48 AM, Eric Emsellem <eem...@es...> wrote: > Hi, > > I have just installed the svn version of matplotlib and basemap + numpy > from the > svn repository of > > http://download.opensuse.org/repositories/home:/ocefpaf/openSUSE_11.3/x86_64/ > > When I do: > ======================================================= > ipython -pylab > (matplotlib 1.0.0, backend GTKAgg version 2.17.0, openSuse 11.3 x86_64) > > import numpy as np > from mpl_toolkits.mplot3d import Axes3D > import matplotlib.pyplot as plt > > fig = plt.figure() > ax = fig.add_subplot(111, projection='3d') > ======================================================== > I get a > > ValueError: Unknown projection '3d' > > I did the upgrade to the svn version because the previous one (which was > already > 1.0) gave me the same message... > > what's wrong here? > (looked at the web and couldn't find out a good solution, beyond the > upgrade I did) > > thanks in advance > Eric > > > Eric, Could you please execute the following: import matplotlib print matplotlib.__version__ and report back what it says? I suspect that when you installed the svn version, the original version of matplotlib is still getting loaded. The projection='3d' feature is brand new to 1.0.0. Ben Root |