autoresizing behaviour
See original GitHub issueAs mentioned in https://github.com/plotly/plotly.py/pull/942#issuecomment-400135253, 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/config
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
autoresizingMask | Apple Developer Documentation
Discussion. When a view's bounds change, that view automatically resizes its subviews according to each subview's autoresizing mask. You specify the value ...
Read more >NSView's autoresizing behavior - cocoa - Stack Overflow
I've setup autoresizing behavior via Interface Builder that works very well. Resizing the main window resizes the elements in a satisfying ...
Read more >Beginning Auto Layout: Autoresizing - raywenderlich.com
This video will review autoresizing masks and why you'd want to us. ... If the autoresizing behaviors do not offer the precise layout...
Read more >How to make Auto Layout more convenient in iOS - Medium
Autoresizing mask was the old way to make layout a bit more ... should never mix resizing masks and Auto Layout to avoid...
Read more >GridViewDataColumn autoresizing in UI for WPF - Telerik
For WPF there is not Autoresizing behaviour or Autoresize or BestFit method. Even if I set the Width property programmatically the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the suggestion @dhirschfeld. The width resizing with fixed height is being implemented in #1117
Alright, I just pushed out
plotlywidget@0.1.1
andplotly==3.0.0rc10
and I added responsive resizing in JupyterLab (the classic notebook doesn’t seem to share the same PhosphorJS resize event).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
layout.width
orlayout.height
specified explicitly then no resizing takes place.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