Hello, Unfortunately, the mplot3D page on the SciPy cookbook is not up to date. The 3D code in mplot3d has been moved to a toolkit and needs to be imported as is seen in the examples found here: http://matplotlib.sourceforge.net/examples/mplot3d/index.html
> So: Any idea how to create a simple 3D scatter plot,seen from any > arbitrary angle? You can rotate the axis in mplot3d :-) I would say from your error log (the file matplotlib/axes3d.py exists whereas it does not in my mpl 0.99.0) that you did not uninstall the old matplotlib cleanly. I suggest that you clean the existing matplotlib completely and reinstall from the tarball). Pierre Le 16 mars 10 à 00:38, Alexander Dietz a écrit : > Hi, > > I would like to create 3D plots. A search revealed the following page: > > http://www.scipy.org/Cookbook/Matplotlib/mplot3D > > which explains to install matplotlib version 0.99 to use the 3D code. > Unfortunately, after installingmatplotlib-0.99.1.1 (from > matplotlib-0.99.1.2.tar.gz) I am not able to use the 3D code. The > command that show that the correct version is used together with the > error is shown below. > > Any idea how I can use this code? Do I have to downgrade to the 0.91.x > maintenance branch? Or do you suggest to use mayavi > (http://code.enthought.com/projects/mayavi/docs/development/html/ > mayavi/mlab.html)? > I also tried to install the latter, after 1 hour of installing code > and requirements and cmake and easyinstall.. I got the error that VTK > is not installed. So: Any idea how to create a simple 3D scatter plot, > seen from any arbitrary angle? > > Thanks > Alex > > > > In [1]: import matplotlib > > In [2]: matplotlib.__version__ > Out[2]: '0.99.1.1' > > In [3]: import matplotlib.axes3d as p3 > ---------------------------------------------------------------------- > ----- > NotImplementedError Traceback (most recent > call last) > > /home/alex/Documents/Job/Travel/2010-03_LSC_Pasadena/3D/<ipython > console> in <module>() > > /usr/lib/python2.6/site-packages/matplotlib/axes3d.py in <module>() > ----> 1 raise NotImplementedError('axes3d is not supported in > matplotlib-0.98. You may want to try the 0.91.x maintenance branch') > > NotImplementedError: axes3d is not supported in matplotlib-0.98. You > may want to try the 0.91.x maintenance branch > > ---------------------------------------------------------------------- > -------- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users