jupyter-widgets-contrib / ipygany

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

Handle NaN values #63

Open davidbrochart opened 4 years ago

davidbrochart commented 4 years ago

In e.g. matplotlib, np.nan is shown as transparent in an image plot. I guess it is currently not supported in ipygany. It would be nice to also not render it, maybe by removing every vertex that has a NaN in one of its coordinates? Or optionally pass a boolean array for the mask, which would allow to support integer types?