Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling Volume Slicer #1271

Open
davidedelvento opened this issue Aug 9, 2023 · 0 comments
Open

Scaling Volume Slicer #1271

davidedelvento opened this issue Aug 9, 2023 · 0 comments

Comments

@davidedelvento
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant