Skip to content

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

Closed

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

  1. mwaskom commented on May 18, 2021

    @mwaskom

    This is a duplicate of #13680; all of matplotlib's packaged "seaborn" style sheets are out of sync with the seaborn library.

  2. bixel commented on May 18, 2021

    @bixel
    Author

    Ok thanks for the pointer, I didn't find that discussion. I'd say this issue is superseded by the discussions in #13680 and related issues.

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