Skip to content

add more color blind-friendly default color cycle #424

Open
@syrte

Description

@syrte

We may consider adding some more colorblind-friendly color schemes. See some discussion at matplotlib/matplotlib#9460
I just take some notes here for future reference.

Several options

# Okabe and Ito color palette
colors = ['#E69F00', '#56B4E9', '#009E73', '#F0E442', '#0072B2', '#D55E00', '#CC79A7']
# Matthew A. Petroff, arxiv:2107.02270
# 6 colors
colors = ["#5790fc", "#f89c20", "#e42536", "#964a8b", "#9c9ca1", "#7a21dd"]

# 8 colors
colors = ["#1845fb", "#ff5e02", "#c91f16", "#c849a9", "#adad7d", "#86c8dd", "#578dff", "#656364"]

# 10 colors
colors = ["#3f90da", "#ffa90e", "#bd1f01", "#94a4a2", "#832db6", "#a96b59", "#e76300", "#b9ac70", "#717581", "#92dadd"]

Petroff's paper has not been published yet. I guess (hope) that the matplotlib community may potentially take Petroff's schemes after the acceptance of the paper.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions