seaborn.choose_colorbrewer_palette#

seaborn.choose_colorbrewer_palette(data_type, as_cmap=False)#

Select a palette from the ColorBrewer set.

These palettes are built into matplotlib and can be used by name in many seaborn functions, or by passing the object returned by this function.

Parameters:
data_type{‘sequential’, ‘diverging’, ‘qualitative’}

This describes the kind of data you want to visualize. See the seaborn color palette docs for more information about how to choose this value. Note that you can pass substrings (e.g. ‘q’ for ‘qualitative.

as_cmapbool

If True, the return value is a matplotlib colormap rather than a list of discrete colors.

Returns:
pal or cmaplist of colors or matplotlib colormap

Object that can be passed to plotting functions.

See also

dark_palette

Create a sequential palette with dark low values.

light_palette

Create a sequential palette with bright low values.

diverging_palette

Create a diverging palette from selected colors.

cubehelix_palette

Create a sequential palette or colormap using the cubehelix system.