Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the name of the default seaborn color palette?

Tags:

From the top of https://seaborn.pydata.org/tutorial/color_palettes.html:

enter image description here

But what is the default one called? That is, how do I invoke it in sns.set_palette() if I changed to a different palette and want to revert to the default? I also couldn't find an answer at https://seaborn.pydata.org/generated/seaborn.color_palette.html.

like image 669
Max Ghenis Avatar asked Feb 24 '18 01:02

Max Ghenis


1 Answers

By default seaborn uses the matplotlib default colors. If you have not changed the default matplotlib parameters, this would be the colors from the "tab10" colormap.

sns.set_palette("tab10")

If however you have set some style beforehands, e.g. using sns.set(), this would set the palette to "deep". Hence you would get this back using

sns.set_palette("deep")
like image 181
ImportanceOfBeingErnest Avatar answered Sep 18 '22 17:09

ImportanceOfBeingErnest