Fix figure legend when drawing stackplots#30186
Merged
timhoffm merged 2 commits intomatplotlib:mainfrom Jul 7, 2025
Merged
Conversation
Member
|
Yes, I believe this is correct; This could do with a test though. |
Member
|
Seems right to me too. The legend and the artists it contains (e.g. |
e1a820c to
b370e30
Compare
rcomer
approved these changes
Jul 7, 2025
timhoffm
approved these changes
Jul 7, 2025
Member
|
@meeseeksmachine please backport to 3.10.x |
Member
|
@meeseeksdev backport to v3.10.x |
meeseeksmachine
pushed a commit
to meeseeksmachine/matplotlib
that referenced
this pull request
Jul 7, 2025
QuLogic
added a commit
that referenced
this pull request
Jul 7, 2025
…186-on-v3.10.x Backport PR #30186 on branch v3.10.x (Fix figure legend when drawing stackplots)
ksunden
pushed a commit
to ksunden/matplotlib
that referenced
this pull request
Aug 21, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR summary
Fixes #30158 - as suggested in #30158 (comment), two calls were trying to set the figure, and I think one of them doesn't need to.
PR checklist