-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
autosize not working as expected in plotly.offline.plot #1524
Comments
I should add, the size is adjusted correctly when used in Jupyter notebook. |
Thanks for the report @marcotama. Do you know if this worked differently prior to 3.8.0? I ask because the reponsive resizing logic was updated to use the Plotly.js @antoinerg is the |
I'm having the same issue immediately after updating from |
We're probably hitting a special case: if My guess is this could be fixed by sizing the element in the produced HTML document. A good default could be to have it fill the viewport using CSS |
Thanks @antoinerg, that sounds very promising. I'll take a look at the generated HTML and let you know if that's not enough for me to figure out what needs to be done 🙂 |
@jonmmease I confirm the problem was not present in 3.7.1. |
@marcotama and @ijustmadethisforplotly, could you give the dev build in #1525 a try and confirm that it takes care of the problems you're seeing? Installation instructions are in #1525 (comment). |
@jonmmease Confirmed! The problem disappears with the build you linked! Thanks for the quick response! |
The height of plots stored in html via
plotly.offline.plot
is set to 450px when height is not specified (at least in my test).Example:
The picture below shows the entire browser page in
Firefox 66.0.3
onmacOS High Sierra 10.13.6
. The file looks the same inChrome 73.0.3683.103
. I am usingplotly 3.8.0
onPython 3.7
.The text was updated successfully, but these errors were encountered: