-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix suptitle out of layout #19805
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
Fix suptitle out of layout #19805
Conversation
a8e20f4
to
aef1db1
Compare
So if the user lets it be auto-positioned on init and then manually adjusts it we will still try to move it around with constrained layout unless they also manually opt out? I think we could flip |
yes, that is correct. The subtitle is just a
Right, but again, that would mean making |
aef1db1
to
a38d94e
Compare
a38d94e
to
6924c26
Compare
…805-on-v3.4.x Backport PR #19805 on branch v3.4.x (Fix suptitle out of layout)
PR Summary
Closes: #19803
Subtitles should not be in constrained layout if they were positioned manually because constrained layout moves them. However, in 3.4 we took them out of the layout altogether, which breaks
bbox_inches='tight'
and the inline backend.Have a check for the hard-coded defaults. Maybe not the most robust, but we don't store the defaults anywhere. Could maybe store onfigure
and get from there, but...Storing on the subtitle object itself works fine.
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).