seaborn.blend_palette#
- seaborn.blend_palette(colors, n_colors=6, as_cmap=False, input='rgb')#
Make a palette that blends between a list of colors.
- Parameters:
- colorssequence of colors in various formats interpreted by
input
hex code, html color name, or tuple in
input
space.- n_colorsint, optional
Number of colors in the palette.
- as_cmapbool, optional
If True, return a
matplotlib.colors.ListedColormap
.
- colorssequence of colors in various formats interpreted by
- Returns:
- palette
list of RGB tuples or
matplotlib.colors.ListedColormap
Examples