On 11/11/2011 11:52 AM, Gael Varoquaux wrote:
> On Fri, Nov 11, 2011 at 11:50:04AM -0500, Nikolaus Rath wrote:
>> I have a surface defined by three 2d arrays X, Y, Z. I can plot the
>> surface very nicely with mlab.mesh().
> 
>> However, I also have a fourth 2d array, F. I would like the color of the
>> surface to be determined by the values of F.
> 
> It seems to me that adding an optional scalar, using "scalars=F", would
> do what you are looking for.

Indeed, thanks! I saw that parameter in the documentation, but the
description didn't really ring a bell.


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to