Re: [mayavi] a few questions about ImagePlaneWidget and Volume modules...
On Fri, Apr 23, 2010 at 09:56:27PM +0200, Fred wrote:
> In the attached snapshot of my Traits app, I use CustomGridPlane module.
> You can notice that Oz axis is scale (x4).
> Is it possible to use ImagePlaneWidget module in this case?
> My guess is that the answer is not.
> For instance, others *Plane modules have an actor trait that I can
> scale. But ImagePlaneWidget does not have an actor trait.
> Is it possible? Is there a hack somewhere that converts the colormap
> used to the CTF used by Volume module?
> Or it's... impossible?
Not impossible, but you will have to write the code yourself. A hint: the
CTF is piecewise-affine, and so is the matplotlib colormar that was
originaly used to define the Mayavi LUT: look at pl.cm.Set1._segmentdata
and at http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps to
understand this data.