Skip to content

Develop plot.ly HTML exporters for glue viewers #1

Closed
@astrofrog

Description

@astrofrog

In glue_plotly/html_exporters I have written a simple plot.ly exporter for 2D scatter plots as an example - this exporter can be used by clicking on the 'save' icon in scatter viewers and selecting 'Save Plotly HTML page':

Screenshot 2019-05-06 at 09 05 38

The code to do this is relatively simple - it relies on the viewer state (which represents the overall viewer options) and the list of layer state (viewer.state.layers) to construct a plotly figure, which is then exported to HTML.

This should now be extended to other viewer types in glue, including the histogram, profile, and (if possible) image viewers. The table in this section of the docs:

http://docs.glueviz.org/en/latest/python_guide/data_viewer_options.html#viewer-options

provides a list of the viewer classes and associated viewer state and layer state classes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions