Orest Kozyar a écrit :
> I've been playing with MayaVI and it's a very nice system.  However, I
> have been stumped by a particular problem.  I am using MayaVI to
> generate 3-d plots to analyze correlations among variables.  This
> means that I might be trying to compare a variable with values in the
> range of [0,10] with a variable who has values in the range of [1e3,
> 1e5].
>
> Plotting something like this results in a graph that has an extremely
> long X axis and a very thin Y axis.  I could change the proportion of
> the axes by scaling the data itself or modifying the spacing
> parameters in the VTK file.  However, both methods result in throwing
> off the numbers shown on the axes.
>
> What I am wondering is if there is any way to set the proportion or
> scaling factor of each axes individulaly while preserving the actual
> unit information that is displayed (i.e. if X axis is 10 units long
> and Y axis is 100 units long, set the scaling factor for X to 10 so
> that it will appear as long as the Y axis, yet the "tick" marks only
> go up to 10).
>
> Any suggestions or advice would be appreciated!
>   
I ccing to enthought-dev ml (mayavi2 ml for now) because I only have a 
clue for mayavi2
(don't know if it exists with mayavi1, as I don't use it anymore).

So... I suggest to get a try with TransformData filter.
Please note that it depends on your VTK file type, this filter does not 
work on any
VTK file type. Works fine on UG (.vtu) data, AFAIK.

http://fredantispam.free.fr/snapshot1.png : not scaled

http://fredantispam.free.fr/snapshot2.png: scaled along Oz axis x 10.

HTH.


Cheers,

-- 
http://scipy.org/FredericPetit


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to