8000 DOC: Replaced colormap for colorblindness by corvusxi · Pull Request #29079 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: Replaced colormap for colorblindness #29079

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
Nov 5, 2024

Conversation

corvusxi
Copy link
@corvusxi corvusxi commented Nov 5, 2024

PR summary

Replaced colormap from RdYlGn to RdYlBu for colorblindness.

PR checklist

@github-actions github-actions bot added the Documentation: examples files in galleries/examples label Nov 5, 2024
@@ -30,7 +30,7 @@
Z = (Z1 - Z2) * 2

fig, ax = plt.subplots()
im = ax.imshow(Z, interpolation='bilinear', cmap=cm.RdYlGn,
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason we should not use one of the perceptually uniform colormaps here?

Copy link
Author

Choose a reason for hiding this comment

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

Chose a different diverging colormap.

Copy link
Member

Choose a reason for hiding this comment

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

@tacaswell the mapping is centered on 0. It makes sense to use a divergent colormap to distinguish positive and negative values.

@tacaswell tacaswell merged commit 696fb85 into matplotlib:main Nov 5, 2024
21 checks passed
@QuLogic QuLogic added this to the v3.11.0 milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: examples files in galleries/examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0