Skip to content

Conversation

jonmmease
Copy link
Contributor

Closes #1524

This PR fixes some regressions in responsive plot resizing that were introduced in 3.8.0.

    1. Plots saved to HTML were not resizing vertically
    1. The vertical height of plots in the notebook was shrunk down to 450px from 525px

I also tracked down a JavaScript error message that was being raised on resize. This led to figuring out how to explicitly cleanup the plotly graph_div elements when they are no longer visible in the notebook (output cell cleared or cell deleted). This may potentially reduce memory usage during long sessions where plots are repeatedly created and destroyed.

Finally, I also worked out how to make the new iframe renderer resize responsively as well.

callbacks don't keep getting called.

Restore default figure height of 525

Make iframe renderer responsive
@jonmmease jonmmease added this to the v3.8.1 milestone Apr 17, 2019
@jonmmease
Copy link
Contributor Author

dev build

$ pip install https://12012-14579099-gh.circle-artifacts.com/0/dist/plotly-3.8.0%2B3.gb8139933.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autosize not working as expected in plotly.offline.plot
1 participant