-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store PlotlyJSON directly in the project model? #1745
Comments
One remaining challenge would be to add support for click/selection events: https://plotly.com/javascript/plotlyjs-events/ This isn't any harder using this approach but it is something that has not been covered here. |
Since the plotly JSON, has all this info, we might be able to just update the |
As far as the second question, ideally we would be able to contain all the info in the single node and allow plotly JSON to contain the subfigure info. |
There are couple of challenges with the current approach:
The solution proposed here would be largely delegating creating of plotly JSON from |
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.
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).The text was updated successfully, but these errors were encountered: