On Wed, Jun 08, 2011 at 12:04:38PM +0000, Gradinaru Vasile Catrinel wrote: > is that a map is defined with the help of the HLS color system > (hue-lightness-saturation): > - the hue of the color is given by angle(z) > - the lightness is given by absolute value of z (0 is white) > - the saturation is always maximal.
> In case of complex functions depending on only one variable, I was able > to implement the same idea: just define the hsv_colors with this > convention (well, in 1D is the lightness also maximal) and convert them > to rgb_colors that we feed to the matplotlib routines, see below. > How should I implement this with mayavi2? Having a 2D colormap is not currently supported in Mayavi. If you want to define your own 1D colormap (that can then be called 'LUT' for Look Up Table), you can insert a pre-computed table, as can be seen in the following example: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_custom_colormap.html Hope this helps, Gaƫl ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users