Jinglei Hu wrote:
> I have a data file which records the xyz coordinates of 3d points. I'd 
> like to specify every point as a sphere with individual colors. How can 
> I do this with MayaVi?

If you have mayavi-3.x (or even 2.x) installed please try this (untested):

$ ipython -wthread

from numpy import *
from enthought.mayavi import mlab
X = loadtxt('fine.xyz')
mlab.plot3d(X[:,0], X[:,1], X[:,2])



cheers,
prabhu

------------------------------------------------------------------------------
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to