You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use CVD friendly defaults for boundary and cell region maps #38
I'd advocate to change the color maps to something that is color-vision-deficiency like Brewer or scientific color maps.
Both would be available in ColorSchemes.jl, so it should be an easy switch.
Currently, the first two colors for the boundary region are red and green,
which is the worst possible choice given CVD statistics.
I very much agree in principle. However I in this case I am reluctant to switch to one of the finite size categorical colormaps here as we cannot know how many different colors we need.
Here we need an algorithm which
a) reliably works for an arbitrary number of categories (integers)
b) has a maximum of perceptual distance between colors corresponding to neighboring numbers
c) b) conforming to CVD rules.
May be someone already invented this bicycle. Or Claude can invent it...
The brewer color scales where designed for cartography, so I think they should be a good choice.
Looking at what is available for a maximum of 11 different data points and is CVD friendly there are a few options,
see https://colorbrewer2.org/#type=diverging&scheme=BrBG&n=11
I think BrBG, PRGn, PuOr would all work for the cell regions
And maybe one of the sequential schemes (with a max of 9) would work best for the boundary, e.g. YlGnBu or YlGn.
Activity
j-fu commentedon Aug 14, 2026
I very much agree in principle. However I in this case I am reluctant to switch to one of the finite size categorical colormaps here as we cannot know how many different colors we need.
Here we need an algorithm which
a) reliably works for an arbitrary number of categories (integers)
b) has a maximum of perceptual distance between colors corresponding to neighboring numbers
c) b) conforming to CVD rules.
May be someone already invented this bicycle. Or Claude can invent it...
jpthiele commentedon Aug 14, 2026
The brewer color scales where designed for cartography, so I think they should be a good choice.
Looking at what is available for a maximum of 11 different data points and is CVD friendly there are a few options,
see https://colorbrewer2.org/#type=diverging&scheme=BrBG&n=11
I think BrBG, PRGn, PuOr would all work for the cell regions
And maybe one of the sequential schemes (with a max of 9) would work best for the boundary, e.g. YlGnBu or YlGn.