-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Readability of the image by color blind persons (#wimlds) (#14154) #14160
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
Conversation
Is there a color palette with six different colors that is color-blind accessible that we can use here? |
(Also when you make these PRs please link to the relevent issue #5435) |
I manually confirmed with the link:
The adjacent similarity for the green-blind from "Let's Get Colorblind" extension: The other color blind categories shows distinction of adjacent colors |
If you cannot find a palette of six distinct colours, perhaps just make the
duplicate colours lighter or darker.
|
@mpetroff opened and work on an issue in matplotlib: matplotlib/matplotlib#9460 We might want to have a look there to see if we can pick-up a cycle which works best until one is landing in matplotlib. |
Preliminary analysis [1] [2] of my color cycle survey data yielded the following cycle: However, as this analysis is preliminary, I can't fully recommend it, at least from an aesthetic perspective. Minimum perceptual distance, including color vision deficiency simulation, was enforced when generating the color sets, so it should be colorblind-safe. For this particular plot, I don't think the color is much a problem, since the groupings can be deduced from the subplot structure. This could be improved by increasing the space between the groups of subplots, such that the grouping would be obvious even if all 24 histograms were the same color. |
@mpetroff Thanks for the input |
Reference Issues/PRs
Fixes for: #14154.
Implemented for:
Contrast image colors for readability by color-blind for documentation file https://scikit-learn.org/dev/auto_examples/preprocessing/plot_map_data_to_normal.html
Image before:

Image after:

Collaborators:
@felexkemboi, @mcecily, @toopurity, @martinoywa