glue-viz / glue-plotly

Experimental plot.ly plugin for glue
BSD 3-Clause "New" or "Revised" License
2 stars 8 forks source link

Add exporter for volume viewer #70

Closed Carifio24 closed 3 months ago

Carifio24 commented 3 months ago

This PR adds an exporter for the Qt vispy volume viewer. This exporter uses the Volume trace from plotly.graph_objects, which uses isosurfaces to create the volume display - see the relevant Plotly documentation here. This exporter is also able to handle 3D scatter layers just like the glue viewer. There was a lot of overlapping functionality between this and the 3D scatter exporter, so I've refactored shared pieces into common/base_3d.py.

There are a few areas to improve, such as trying to find a way to reduce the exported file size, but this is a good place to start.