Re: [MayaVi-users] 3d points with color
Status: Beta
Brought to you by:
prabhu_r
|
From: Prabhu R. <pr...@ae...> - 2008-12-26 10:57:47
|
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
|