0.11.2
  • Gallery
  • Tutorial
  • API
  • Site
      • Introduction
      • Release notes
      • Installing
      • Example gallery
      • Tutorial
      • API reference
      • Citing
      • Archive
  • Page
      • seaborn.blend_palette

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.Colormap.

Returns
list of RGB tuples or matplotlib.colors.Colormap

Back to top

© Copyright 2012-2021, Michael Waskom. Created using Sphinx 3.3.1.