enthought / enthought/mayavi

Scaling Volume Slicer

Open
#1,271 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.