jupyter-widgets-contrib / ipygany

3-D Scientific Visualization in the Jupyter Notebook
BSD 3-Clause "New" or "Revised" License
487 stars 53 forks source link

Feature Request: Natively use magnitude of multicomponent data #114

Open MatthewFlamm opened 3 years ago

MatthewFlamm commented 3 years ago

I'd like to request an easy to use way to utilize the magnitude of multicomponent data in ipygany. Something like this where the velocity data has multiple components and norm is an optional argument.

colored_mesh = IsoColor(mesh, input='velocity', norm=True)

Right now, the only method I can come up with is to add the magnitude as a separate component or separate data. It would be useful in pyvista to avoid having to create another data array for ipygany. This arose in https://github.com/pyvista/pyvista/pull/1387#issuecomment-861830319.