Repository navigation
Do not pass gridspec_kw to inner layouts in subplot_mosaic #24189
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
Merged
tacaswell
merged 16 commits into
matplotlib:main
from
joshbarrass:mosaic-ratios-fix-24099
Oct 21, 2022
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8522e9e
Do not pass width/height ratios to nested layouts
joshbarrass 666ab55
Add test case for width_ratios
joshbarrass 57a0a01
Add test case for height_ratios
joshbarrass e23ebe3
Add behaviour change file
joshbarrass 56b629d
Double backticks in rst
joshbarrass 779caae
Rename to suit new PR
joshbarrass 26cb4a4
Fix doc build warning (underline too short)
joshbarrass 36d18ab
Completely disable passing of gridspec_kw to inner layouts
joshbarrass e4e83d4
Remove the new, now unneeded, nested_gw_kw dict
joshbarrass acf1d26
Apply doc(string) suggestions from code review
joshbarrass e584e8f
Shorter api change explanation
joshbarrass 2a3e919
Shorter gridspec_kw docstring
joshbarrass a0f8cd9
Correction of function names in docstrings
joshbarrass ecf1aef
Modify behaviour msg to clarify the reasoning behind the change
joshbarrass cb9b48b
Clarify context of nested layouts in docstrings
joshbarrass b4307f7
Remove trailing whitespace
joshbarrass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Completely disable passing of gridspec_kw to inner layouts
- Loading branch information
commit 36d18ab33b57dc5b64c314102aa37b4c9d34d2b2
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| ``fig.subplot_mosaic`` no longer passes the ``width_ratios`` or ``height_ratios`` args to the nested gridspecs. | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| ``fig.subplot_mosaic`` no longer passes the ``gridspec_kw`` args to the nested gridspecs. | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Previously, the entirety of the ``gridspec_kw`` dictionary was passed | ||
| to the nested gridspecs. This caused an error if the inner layout was | ||
| incompatible with one of these ratios. A new dictionary is now made, | ||
| ``nested_gs_kw``, where the ``"width_ratios"`` and ``"height_ratios"`` | ||
| keys have been removed, which is passed to any nested gridspecs. This | ||
| prevents such errors. | ||
| Previously, the ``gridspec_kw`` dictionary was passed to the nested | ||
| gridspecs, as well as the outer gridspec. This caused errors with many | ||
| options, such as the ``"width_ratios"`` and ``"height_ratios"`` | ||
| options if the inner layout was incompatible with either of these | ||
| ratios. This dictionary is no longer passed to the inner layouts, and | ||
| users are directed by the docstring to construct the layout manually | ||
| if the inner layouts require any of these args. | ||
|
joshbarrass marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.