Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turbo colormap #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Turbo colormap #6

wants to merge 1 commit into from

Conversation

m3at
Copy link

@m3at m3at commented Mar 3, 2023

Hi, first thanks for this nice paper!

For plotting in this repo, what would you think of using a different colormap designed for depth?
It make it much easier to see details, compare distant points in the image, and is friendlier to color blindness. Also it has already been added to matplotlib a while back so is widely available. Subjectively I think it also highlight the quality of your work!
(it's only a detail I know, but a bit of a pet peeve of mine 馃槄)

example_turbo_1

More sample images

example_turbo_2

example_turbo_3

example_turbo_4

example_turbo_5

@mpetroff
Copy link

is friendlier to color blindness

Turbo is not colorblind-friendly, nor is any other rainbow colormap; see this blog post for details. The existing Magma colormap is much better for accessibility.

@m3at
Copy link
Author

m3at commented Mar 23, 2023

@mpetroff thanks for the write-up, good to know!
What do you think of the other two points? Do you happen to know a colormap that successfully address all three concerns?

@mpetroff
Copy link

Unfortunately, I think colorblind accessibility and maximizing perceptual distance for typical color vision, and thus addressing your other two points, are mutually exclusive goals.

To maintain accessibility, you need to rely primarily on lightness differences in the colormap, which limits the achievable perceptual distance between difference parts of the colormap. By also relying on hue, as is done by Turbo, you can increase the average perceptual distance but only for individuals that perceive hue the same way. Referencing the plots in my blog post, Turbo is better for your first two points for individuals with typical color vision because the 螖E metric is higher than, e.g., Viridis, but as the metric is highly variable for individuals with color-vision deficiencies, Turbo is not colorblind accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants