-
Notifications
You must be signed in to change notification settings - Fork 285
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
Volume scalar bar #93
Comments
Confirmed. Investigating. |
I am puzzled because the LUT is apparently keeping the default hue (red-blue gradient) even when the correct gradient is shown. it's not touched and yet it's the only source for the widget. There is some mechanism at work that I still haven't found. |
The Volume Module appears to be installing a VolumeProperty to the LUT where all color values are zero. Probably uninitialized _volume_property? |
After investigation, I don't think this is a bug. The main problem is that you are accessing members that are considered private, but in any case the issue is that you are replacing the CTF on the Volume. The VolumeProperty has an internal CTF that never gets updated. Internally, we keep this consistent, but manipulating it from the outside you obtain strange results. @prabhuramachandran any comment? |
First of all congratulations for the great work you do with Mayavi!
I have been trying to visualise a volume using Maximum Intensity Projection and cannot get the scalar bar depicted properly unless I kind of "update" the source. In the example at the end, the scalar bar appears just black. A workaround I have found is to change the name of the dataset (see last code line).
I have seen this behaviour on Windows 7 (Enthought Canopy 1.1.0 64 bit) and on Ubuntu 12.04 64 bit (Mayavi 4.0.0, VTK 5.8.0, Python 2.7.3).
Do you know why does this happen and if there is any other way of solving it?
In addition, is it possible to create a colorbar that also displays the alpha channel?
Thanks in advance!
The text was updated successfully, but these errors were encountered: