Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Added dark-mode diverging colormaps#28587
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this 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 week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join uson gitter for real-time discussion.
For details on testing, writing docs, and our review process, please seethe developer guide
We strive to be a welcoming and open project. Please follow ourCode of Conduct.
From the circle log
I think you just want those as quotes, not back quotes? |
[0.71945, 0.9592, 0.60112], | ||
[0.72782, 0.96989, 0.61646], | ||
[0.7362, 0.98063, 0.63191], | ||
[0.74458, 0.99141, 0.64748]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This sees fine, but are these really defined by a colourable, or do they also have a linear segmented definition? If so, that would be much more compact....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hmm, I guess not, according to the originals...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I don't know enough to dare changing from the original version, personally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Docs need fixing, but otherwise looks OK to me.
Bonus points if you add a section to Choosing Colormaps to get more exposure for this. Not that I agree with everything in Choosing Colormaps, but...
[0.71945, 0.9592, 0.60112], | ||
[0.72782, 0.96989, 0.61646], | ||
[0.7362, 0.98063, 0.63191], | ||
[0.74458, 0.99141, 0.64748]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hmm, I guess not, according to the originals...
Thank you for the quick reply. Regarding Choosing Colormaps, I had added a paragraph saying
Is that what you meant or did you want something more? |
I was suggesting adding to: https://matplotlib.org/stable/users/explain/colors/colormaps.html which is one of our highest ranking pages for google search. |
Oh, I'm sorry - I completely spaced that |
story645 left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yay, thanks for putting in this PR. Please remove the wrong alt-text. Changing to the right alt-text would be a plus but not strictly necessary for approval.
Uh oh!
There was an error while loading.Please reload this page.
Sorry for forgetting that. I've now fixed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for adding these!
This needs two approvals so pinging@jklymak
story645 commentedJul 19, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Also@Crameri does this comply with your requirements in#18608 (comment)? |
.. plot:: | ||
:include-source: true | ||
:alt: Example figures using "imshow" with dark-mode diverging colormaps on positive and negative data. First panel: "berlin" (blue to red with a black center); second panel: "managua" (orange to cyan with a dark purple center); third panel: "vanimo" (pink to green with a black center). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
We don't lint rst files, but pretty sure this should be wrapped. I think as long as you indent the plot directive should still be OK.
martinosorbJul 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I wasn't sure whether breaking the line would send me out of thealt
variable. I checked the previous what's new files and they seem to go on without breaking the line:https://raw.githubusercontent.com/matplotlib/matplotlib/ed56f95cb6f5b54525687dabbb0e660bafec4d94/doc/users/prev_whats_new/whats_new_3.9.0.rst; so I kept the same style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'm not sure either, and maybe it was done that way on purpose. But if not, then it would be nice to have wrapping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Unfortunately I was unable to compile the docs locally due to some dependency issues, so I cannot check. Sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thats why we have CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That didn't work, I reverted.
Crameri commentedJul 24, 2024
Yes, perfect! Thanks all for your initiative and effort on this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for your work on this!
Looks like the doc build is failing though, before we merge |
Rebase should fix the doc build |
I rebased and squashed. CI is green. |
27d94d0
intomatplotlib:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@martinosorb ! |
PR summary
There is currently no dark-mode diverging colormaps.
This adds three such colormaps,
berlin
,managua
, andvanimo
, which have been developed by@Crameri.Rightfully, there is a resistance against adding new colormaps all the time, however:
Closes#18608.
PR checklist