Skip to content
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

ENH: Finish colorblindness update #248

Merged
merged 2 commits into from
Jan 12, 2018
Merged

ENH: Finish colorblindness update #248

merged 2 commits into from
Jan 12, 2018

Conversation

mmargenot
Copy link
Contributor

Forgot to add default palette change

@mmargenot mmargenot requested a review from luca-s January 8, 2018 18:25
Copy link
Collaborator

@luca-s luca-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sns.set_palette is tricky. it doesn't only set the palette, it also set the number of colors of the matplotlib color cycle. I believe the default for sns.set_palette is 6 colors and I believe 6 colors are too few.

I would suggest to set the palette inside plotting.customize, that seems the perfect place for plots customization.

Also, instead of using sns.set_palette you could use sns.color_palette, which can also be used in a with statement

Copy link
Collaborator

@luca-s luca-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!!!

@luca-s luca-s merged commit 5910235 into master Jan 12, 2018
@luca-s
Copy link
Collaborator

luca-s commented Jan 12, 2018

Thank you @mmargenot

@mmargenot mmargenot deleted the colorblindness branch January 12, 2018 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants