enthought / mayavi

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

[question] How to change colormap in the VolumeSlicer example? #1137

Closed rk-exxec closed 2 years ago

rk-exxec commented 2 years ago

Hey,

does anyone know how I can change the color map for the VolumeSclider example here: https://docs.enthought.com/mayavi/mayavi/auto/example_volume_slicer.html

Thanks in advance!

drocheam commented 2 years ago

Just add the colormap={name} parameter to all objects created in the pipeline.

In the volume slicer example you need to add this parameter to lines 60, 64, 84, 107 and 111.

For example with colormap="Greys" the volume slicer example looks as follows: screenshot2

rk-exxec commented 2 years ago

Thank you very much!