| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks great except for some formatting issues?
Sorry, something went wrong.
| terrain mapmaker's colors, blue-green-yellow-brown-white, | ||
| originally from IGOR Pro | ||
| turbo a spectral map (purple-blue-green-yellow-orange-red) with | ||
| a bright center and darker endpoints. a smoother |
There was a problem hiding this comment.
Can you fix the capitalization and indenting here?
Sorry, something went wrong.
There was a problem hiding this comment.
Done! Sorry capitalization style wasn't clear from the above :)
Sorry, something went wrong.
| # colormap vs. the other since color cannot be used once a plot is printed to | ||
| # grayscale. Many of the Qualitative and Miscellaneous colormaps, such as | ||
| # Accent, hsv, and jet, change from darker to lighter and back to darker gray | ||
| # Accent, hsv, jet and turbo, change from darker to lighter and back to darker gray |
There was a problem hiding this comment.
We have a 79-character limit, so this won't pass our format requirement test
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed it up, though some lines above are at 80 chars, just fyi... (should I fix those too?)
Sorry, something went wrong.
There was a problem hiding this comment.
Currently this file is excluded from the 80 char limit.
Line 53 in a813b92
This means you can either leave it as it is or fix all of them and remove the entry in the .flake8 file. (One should be aware that the more changes are made at different points, the higher the chances one will later on need to rebase; this might speak in favour of doing those line-length changes in a separate PR)
Sorry, something went wrong.
|
Does colormaps.py require a \n at the end? |
Sorry, something went wrong.
Yes. And while everyone's in the nitpicky mode here: Would it make sense to put turbo directly below jet in those lists to allow for a better comparisson? |
Sorry, something went wrong.
|
Good idea, did that and added the \n. |
Sorry, something went wrong.
|
I guess the test are the docs: https://25132-1385122-gh.circle-artifacts.com/0/home/circleci/project/doc/build/html/gallery/color/colormap_reference.html#sphx-glr-gallery-color-colormap-reference-py |
Sorry, something went wrong.
|
Actually, how does turbo compare with Peter Kovesi's rainbow, available in colorcet? see https://colorcet.pyviz.org/ |
Sorry, something went wrong.
|
The colorcet rainbow doesn't centre on green, which is one of the things that makes jet/turbo useful. |
Sorry, something went wrong.
|
Just to note something said in a discussion thread:
As a policy, Matplotlib does not make changes to released colormaps. While you would have until the v3.3 release to make any changes you feel is necessary, this is really why I have always felt that a publication requirement was important for colormaps. The viridis colormap went through a lot of vetting and modifications before it was even named (it was originally called "option D", if I remember correctly). The Brewer colormaps were all published elsewhere before getting included in matplotlib. A few others were all tweaked and modified as part of a peer review process prior to publication that finalized them. If you want to do major changes to the colormap, then I would suggest doing so and going through the publication route again. Or, perhaps consider calling such a modified colormap a new colormap with a new name (and again, go through a publication route). But don't expect to be able to make any further changes to Turbo in this package once it is in a matplotlib release. |
Sorry, something went wrong.
|
Understood. I think we're actually saying the same thing, because I agree. I basically was trying to say that small tweaks to address people's feedback didn't work, and big changes would mean essentially a new colormap, new publication etc, so let's add turbo as is with it's strengths+weaknesses, and not confuse the matters. If someone comes up with (substantial) improvements to this, it'll likely look different enough for a new publication, discussion, and so on. |
Sorry, something went wrong.
|
re. the above two comments, I'll mark this as release critical so we don't forget it for 3.3, but leave it to stew in case any changes want to be made in the next ~6 months. |
Sorry, something went wrong.
|
@mikhailov-work Have there been any updates to turbo? I am going to rebase and force-push so it will merge cleanly. We are getting close to the 3.3 release so we are getting close to the point of no return ;) |
Sorry, something went wrong.
- moving turbo to be near jet for better comparison
|
Please let us know if there are any issues, the final release isn't out yet. |
Sorry, something went wrong.
|
does this need a what's new entry? |
Sorry, something went wrong.
|
Ah, yes, that sounds like a good idea. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
This PR adds the Turbo colormap, originally proposed in
https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html
Discussion is found in #15091
PR Checklist