Skip to content

Store PlotlyJSON directly in the project model? #1745

@brollb

Description

@brollb

Working on the interactive tensor plotting capabilities has brought some issues to light with the current approach taken with plots. The tensor plotting capabilities include plotting one-dimensional tensors as shown below.

DeepinScreenshot_20200703093236

However, this can not be represented in the current metamodel nor the matplotlib backend (required for reproducing the plot). The main issue here is not just that it isn't supported but that adding support requires changes to the metamodel and the matplotlib backend (which is already somewhat large).

Alternatively, we could simply store the plotly JSON directly in our metamodel. This should greatly simplify the matplotlib backend code as it can just use plotly.tool.mpl_to_plotly and would provide support for almost all plots immediately - rather than adding custom code for each one (where it feels like we have begun to reinvent the wheel).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions