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

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bixel opened this issue May 18, 2021 · 2 comments
Closed

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

bixel opened this issue May 18, 2021 · 2 comments

Comments

@bixel
Copy link

bixel commented May 18, 2021

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.

@mwaskom
Copy link

mwaskom commented May 18, 2021

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

@bixel
Copy link
Author

bixel commented May 18, 2021

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
Projects
None yet
Development

No branches or pull requests

3 participants