Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
TightLayoutEngine.execute runs get_tight_layout_figure twice#26203
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This seems like a fine thing to do. Not sure if we want to change that many images.
Given that most people should be using constrained_layout nowadys, and that tight_layout has other shortcomings as well, I think that changing the behavior - even if it means improving - is not worth it. Those who are using tight_layout are likely ok with the existing behavior. Those who want a better layout engine should switch to constrained_layout. I therefore propose to close this. |
PR summary
If
AutoLocator
is used, changing the location of axes may change the ticklabels.Thus the result of tight_layout may not be optimal.
The PR simply runs the algorithm twice.
ConstrainedLayoutEngine
also runs its algorithm twice (_constrained_layout.do_constrained_layout
)PR checklist