seaborn.set_palette#
- seaborn.set_palette(palette, n_colors=None, desat=None, color_codes=False)#
Set the matplotlib color cycle using a seaborn palette.
- Parameters:
- paletteseaborn color palette | matplotlib colormap | hls | husl
Palette definition. Should be something
color_palette()can process.- n_colorsint
Number of colors in the cycle. The default number of colors will depend on the format of
palette, see thecolor_palette()documentation for more information.- desatfloat
Proportion to desaturate each color by.
- color_codesbool
If
Trueandpaletteis a seaborn palette, remap the shorthand color codes (e.g. “b”, “g”, “r”, etc.) to the colors from this palette.
See also
color_palettebuild a color palette or set the color cycle temporarily in a
withstatement.set_contextset parameters to scale plot elements
set_styleset the default parameters for figure style