enthought / mayavi

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

No way to independantly scale colour and size in points3d #1129

Closed RobbieDOGE closed 2 years ago

RobbieDOGE commented 2 years ago

Issue: Trying to plot scalar field (X,Y,Z,Data), and need the colors to scale with the data values but can't have the glyph size scale with the data

Solution: Need something like a size_override=S parameter in the points3d function, which plots all glyphs of size "size_override" when S!=0).

Why is this important? The alternative behavior (constant color but scaling size) is possible by setting the color parameter which overrides color scaling, but scaling color with constant glyph size isn't possible and is a really important feature for most data visualization of scalar fields using points.

Please let me know if I've made a mistake and this functionality is some how possible (note it isn't possible using the "scale_factor" and "scale_mode" parameters to my knowledge). Best regards, Robert H.

RobbieDOGE commented 2 years ago

SOLVED: Looks like I didn't use the scale_mode='none', in my testing when I thought I did (scale_factor param then becomes the desired size, as required). In conclusion points3d does have the desired functionality. Closing.