Thanks to visit codestin.com
Credit goes to github.com

Skip to content

enh: additional colorblind-friendly colormaps #7081

Closed
@drammock

Description

@drammock

I've seen a lot of activity around colorblind-friendly colors (#2871, #6254) and simulation of colorblindness (#3279). I wonder if you would also like the colorblind-friendly colormaps published by Paul Tol which I have recently implemented for myself here. Sample plot:

test_colormaps

The two bottom rows are the matplotlib versions, done via ListedColormap -> register_cmap -> imshow(..., cmap=get_cmap(...)). I could easily add the data for these 3 colormaps as a PR into _cm_listed.py. Are you folks interested?

postscript: It would be great to get the discrete palettes in there too, but I'm not sure if they will work as cyclers, since the color values can change as the number of levels increases (see, e.g., the blue change in the jump from 4 to 5 in the qualitative palette). But to be honest I haven't tried yet... it could be a separate PR if there's interest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions