✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐍Plotly, Coiled CEOs Discuss Partnering & ML Experts show us how Dash + Dask apps work Register for the Webinar.

[Resolved] Retrieving Plot config after plot

Look at the Plotly.newPlot documentation, there are a few lines of code that say:

Plotly.newPlot(graphDiv, data, layout);


var dataRetrievedLater = graphDiv.data;
var layoutRetrievedLater = graphDiv.layout;

This gives us the ability to retrieve most of the plot’s information after plotting. But what about the config?

Is it possible to do the same thing to the config?

There’s no official way. But graphDiv._context should have what you need.

1 Like