Hello,

I'd like to vizualize molecules. In dependence of their atomic number 
the atoms should have different colors. So I tried following example:


from enthought.mayavi import mlab
x = [0,0.0,0.5,1]
y = [0,1.0,0.5,1]
z = [0,0.0,0.5,1]
s = [.8, .7, .5, .2]
colmap = [(0,0,0,255),(0,255,0,255),(0,0,255,255),(255,255,0,255)] 
#black, green, blue, yellow

mol = mlab.points3d(x, y, z, s, scale_factor=1)
mol.module_manager.scalar_lut_manager.lut.table = colmap

mlab.show()

The problem is that the order is inverted (the biggest point should be 
black) and that only 3 colors are used. What I'm doing wrong?

Thanks
Markus

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to