Re: [MayaVi-users] Setting the aspect ratio (x/y/z) of a surface plot?
Status: Beta
Brought to you by:
prabhu_r
|
From: Prabhu R. <pr...@ae...> - 2003-02-18 20:31:55
|
>>>>> "FP" == Fernando Perez <fp...@pi...> writes:
FP> Hi all, sorry if this has been already answered, I googled
FP> around and couldn't find a solution. I am plottinng arrays
FP> using mayavi (and Prabhu's soon-to-be-released mayamat module)
FP> but I have a little problem. The ranges of the x,y and z data
FP> are numerically wildly different, so I end up with one
FP> direction either much larger or much smaller than the others.
FP> I was wondering if there is a way to set the aspect ratio
FP> manually. It would be great if one could just set a ratio for
FP> x:y:z irrespective of the numerical ranges.
Well, there are a couple of kludges:
1. If you are using mayamat.py I can arrange for a scale argument
which will scale the data appropriately internally (easy to do --
just change the arange appropriately).
2. From within MayaVi you can do this by visiting the pipeline
browser for an actor, clicking on the actor and then changing the
scale in the correct entry.
SurfaceMap(Dclick)->ShowPipeline(click)->Actor(dclick)->scale(edit).
cheers,
prabhu
|