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

Default color palette and saturation #3812

Closed
cornzz opened this issue Jan 10, 2025 · 0 comments
Closed

Default color palette and saturation #3812

cornzz opened this issue Jan 10, 2025 · 0 comments

Comments

@cornzz
Copy link

cornzz commented Jan 10, 2025

I'd like to know what the rationale is behind setting saturation to 0.75 by default in barplot(), maybe there is a good reason I cant think of?

I have create lots of plots right now and was using matplotlib pyplot, but the plots didnt look as nice as I wouldve liked so I remembered that seaborn can fix this. I made some barplots using seaborn and it looked good but it was too much effort switching completely, so I went back to pyplot at some point. Now I wanted to make the colors consistent across plots and I couldn't for the life of me figure out why the colors in the seaborn plots looked different, even though I tried using the default palette returned from sns.color_palette() everywhere. Until I realized that barplot() simply sets saturation to 0.75.

What the fuck is the logic behind that? I lost an hour on this.

@mwaskom mwaskom closed this as completed Jan 10, 2025
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

No branches or pull requests

2 participants