seaborn-colorblind style inconsistent with upstream seaborn colors. · Issue #20252 · matplotlib/matplotlib · GitHub
Skip to content

seaborn-colorblind style inconsistent with upstream seaborn colors. #20252

Description

@bixel

Apparently

plt.style.use('seaborn-colorblind')

yields a different color cycle than the one documented in the seaborn docs.
Especially the greenish color at the second place can be confusing as we're used to 1. blue 2. orange 3. green colors and so on.

I've translated the seaborn colors via

[
    ''.join([f'{int(255 * h):02x}'.upper() for h in c])
    for c in sns.color_palette('colorblind')
]
> ['0173B2', 'DE8F05', '029E73', 'D55E00', 'CC78BC', 'CA9161', 'FBAFE4', '949494', 'ECE133', '56B4E9']

I guess this should go into https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/stylelib/seaborn-colorblind.mplstyle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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