Skip to content

Reverse stackplot legend to match data display #25956

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
merged 1 commit into from
May 23, 2023

Conversation

peterjc
Copy link
Contributor

@peterjc peterjc commented May 23, 2023

This puts the legend key in the same order as the stacked data, with oceania at the top (near invisible), then europe, ..., with africa at the bottom.

Before:
before

After:
after

PR summary

PR checklist

This puts the legend key in the same order as the stacked data, with oceania at the top (near invisible), then europe, ..., with africa at the bottom.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@story645 story645 closed this May 23, 2023
@story645 story645 reopened this May 23, 2023
@story645 story645 added this to the v3.7-doc milestone May 23, 2023
@story645
Copy link
Member

Hi, really sorry I was too quick with my initial reply, this is great!

@peterjc
Copy link
Contributor Author

peterjc commented May 23, 2023

I should have said this was using the new option in version 3.7 (a very handy addition) 😀

@timhoffm timhoffm merged commit c1cf159 into matplotlib:main May 23, 2023
@timhoffm
Copy link
Member

Thanks @peterjc!

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 23, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 23, 2023
timhoffm added a commit that referenced this pull request May 23, 2023
…956-on-v3.7.1-doc

Backport PR #25956 on branch v3.7.1-doc (Reverse stackplot legend to match data display)
@peterjc peterjc deleted the patch-1 branch May 23, 2023 15:38
timhoffm added a commit that referenced this pull request May 23, 2023
…956-on-v3.7.x

Backport PR #25956 on branch v3.7.x (Reverse stackplot legend to match data display)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants