simvue-io / client

Simvue Python client
https://docs.simvue.io
Apache License 2.0
4 stars 0 forks source link

Stored Matplotlib artifacts are retrieved as Plotly objects #218

Open wk9874 opened 3 months ago

wk9874 commented 3 months ago

When a Matplotlib figure is stored as an artifact to the Simvue server, it is converted to a Plotly artifact and stored that way (I assume so that it can be viewed within the UI, which is very useful!). However when it is pulled back from the server using the client, the figure is returned as a Plotly object, instead of the Matplotlib figure originally stored. Can the figure be converted back to Matplotlib before being returned, so that the user gets back the same artifact which they stored?

alahiff commented 3 months ago

I think we should switch to storing Matplotlib plots exactly as they are, so that they can easily be returned as Matplotlib figures correctly. Transforming them to Plotly for the UI can then be done elsewhere.