-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Enh/extend mosaic kwargs #24604
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
greglucas
merged 8 commits into
matplotlib:main
from
tacaswell:enh/extend_mosaic_kwargs
Dec 29, 2022
Merged
Enh/extend mosaic kwargs #24604
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7760e5e
MNT: remove explicit label setting
tacaswell f74fe35
ENH: add ability to pass per-Axes subplot_kw through subplot_mosaic
tacaswell e651574
DOC: clarify special case
tacaswell 54189fc
DOC: tweak wording on what are allowed keys in the mosaic
tacaswell 4e3143e
DOC: fix markup
tacaswell f714df7
DOC: fix word choice and markup
tacaswell 5b0fb4a
DOC: add missing docs to pyplot
tacaswell e56f876
DOC/STY: improve wording and line wrapping
tacaswell 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Per-subplot keyword arguments in ``subplot_mosaic`` | ||
---------------------------------------------------- | ||
|
||
It is now possible to pass keyword arguments through to Axes creation in each | ||
specific call to ``add_subplot`` in `.Figure.subplot_mosaic` and | ||
`.pyplot.subplot_mosaic` : | ||
|
||
.. plot:: | ||
:include-source: true | ||
|
||
fig, axd = plt.subplot_mosaic( | ||
"AB;CD", | ||
per_subplot_kw={ | ||
"A": {"projection": "polar"}, | ||
("C", "D"): {"xscale": "log"}, | ||
"B": {"projection": "3d"}, | ||
}, | ||
) | ||
|
||
|
||
This is particularly useful for creating mosaics with mixed projections, but | ||
any keyword arguments can be passed through. |
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
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
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
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.