From the top of https://seaborn.pydata.org/tutorial/color_palettes.html:
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.
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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With