-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ENH: add width_ratios and height_ratios to subplots #23191
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
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.
👍 I support the idea.
04b6ea9
to
f1a8cce
Compare
This is ready to go, and I'll argue its a pretty big quality of life enhancement for anyone making different-width/height plots. |
2e60682
to
17978e7
Compare
@story645 got time for a quick second look? |
Sorry for being late to the party, but see also #21942 (comment). |
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.
Anyone can merge on CI green.
Squashed and rebased on master so font fix should be in there... |
PR Summary
I'm guessing 99.9% of the use of gridspec_kws is to set the height or width ratios of axes. And it is pretty esoteric to ask people to know about gridspecs in order to access this. Here we add
width_ratios
andheight_ratios
to the subplots and subplot_mosaic calls.Previously we would do
This PR allows
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).