-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
autoresizing behaviour #1041
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
Comments
Alright, I just pushed out The intended behavior is for plots to expand to fill their container on construction, and when the container is resized. But, if the figure has I think this is a nice balance. Figure's will resize unless you say what size you want. For plots that are expensive to resize, the user just needs to decide what size they want and it will stick there. Give it a try and see what you think |
I think what you were talking about here was included in 3.0.0. Can you confirm @dhirschfeld? |
Going to close this, as I believe it was sufficiently addressed prior to the release of version 3.0.0. We can reopen or create a new issue if there are any other outstanding issues. |
Sorry, other priorities got in the way of testing this. I'm now using plotly 3.1.0 with jupyterlab 0.33.7 and the plot is now automatically resizing which is great! If I specify the height of the figure the auto-resizing no longer happens - as you mentioned above. I think it would be nice though if only the height is specified for the width to continue to automatically resize and vice-versa. i.e. auto-resizing would only be completely disabled if both height and width were specified. Not sure if that's feasible? |
Thanks for the suggestion @dhirschfeld. The width resizing with fixed height is being implemented in #1117 |
I'm getting a similar issue to this in jupyterlab with Plotly Express. If I use |
As mentioned in #942 (comment), in the JupyterLab display, in a lot of cases, it would be very nice if the plot would automatically resize when the window/tab resized.
Since there are situations where this wouldn't be desirable e.g. in the case of large/slow plots, it would be very good if this behaviour could be chosen by the user with an
autoresize
property/argument/configThe text was updated successfully, but these errors were encountered: