hello,
thanks for answering. I actually fail with the import :
In [1]: from matplotlib import axes3d
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/cohen/bstw/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/matplotlib/axes3d.py in <module>()
14 from axes import Axes
15 import cbook
---> 16 from transforms import unit_bbox
17
18 import numpy as npy
ImportError: cannot import name unit_bbox
any idea?
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 27 Jan 2008 22:18:00 +0000
> From: "Neil Crighton" <[EMAIL PROTECTED]>
> Subject: Re: [Matplotlib-users] plotting a series of 3D points and
> picker=True and 3D
> To: [email protected]
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I think scatter3D does what you want:
>
> from matplotlib import axes3d
> import pylab as pl
> fig = pl.figure()
> ax = axes3d.Axes3D(fig)
> ax.scatter3D(data[:,0],data[:,1],data[:,2])
> ax.set_xlabel('X value')
> ax.set_ylabel('Y value')
> ax.set_zlabel('Z value')
> pl.show()
>
> You could also change the colour and size of each point based on other
> array values:
>
> col = ax.scatter3D(data[:,0], data[:,1], data[:,2], c=data[:,3],
> cmap=pl.cm.jet, s=data[:,4])
> cbar = fig.colorbar(col,shrink=0.9,extend='both')
> cbar.ax.set_ylabel('axis 3 data values')
>
> Pretty nifty.
>
> Neil
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users