question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

autoresizing behaviour

See original GitHub issue

As 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jonmmeasecommented, Aug 17, 2018

Thanks for the suggestion @dhirschfeld. The width resizing with fixed height is being implemented in #1117

1reaction
jonmmeasecommented, Jun 27, 2018

Alright, I just pushed out plotlywidget@0.1.1 and plotly==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 or layout.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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found