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 profile viewer #26

Closed Carifio24 closed 1 year ago

Carifio24 commented 1 year ago

This PR adds an exporter for the profile viewer. The implementation here is pretty straightforward and follows the same big-picture logic as the histogram viewer: get the computed profile from glue, and use that data as the input for the Plotly trace.

A few of the exporters had some common utility functions, so this also extracts those out into utils.py and updates the other exporters appropriately.

This exporter should probably get the error message box treatment from #25 - when one of these gets merged, I'll update the other appropriately.