enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.28k stars 282 forks source link

Scaling Volume Slicer #1271

Open davidedelvento opened 11 months ago

davidedelvento commented 11 months ago

When I plot things in Mayavi, e.g. a mlab.contour3d or a mlab.points3d I can simply scale the image differently in x, y, and z by calling something actor.actor.scale = (30, 0.1, 10) as my data requires (and incidentally, I think that the API would be extremely much more intuitive and nice if one could directly call scale without having to dig into those two levels of actor, but I digress)

When using the Volume Slicer as described at https://docs.enthought.com/mayavi/mayavi/auto/example_volume_slicer.html (which by the way is fantastic, thanks for putting it together), I am unable to scale arbitrarily and independently x, y and z. My problem is that it's not clear to me what the relationships among all the involved objects are, and hence how to get to the appropriate object to scale. In fact, I can't figure out if that is even possible.... is it? Any clues on how to accomplish it?

TIA