Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix issue with clf not clearing constrainedlayout#10552
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
afvincent commentedFeb 21, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@jklymak I just tried locally your PR and it looks like I now get the behavior that I was expecting in the first place :): no warning with Edit: Unfortunately CI seems a bit less happy than I am :/... |
Yep. Testing is good. I was being too aggressive in re-instantiating the layoutbox; the gridspec actually instantiates the figure's layoutbox... |
Appveyor seems backlogged, but other tests seem fine now |
Backport PR#10552 on branch v2.2.x
PR Summary
As noted by@afvincent (on gitter)
if called twice in an interactive session doesn't work on master.
The new axis is still being constrained by the presence of the old (cleared) one and gets shrunk to nothing.
This change properly resets the constrained_layout mechanism when
figure.clf()
is called.