seaborn.hls_palette

seaborn.hls_palette(n_colors=6, h=0.01, l=0.6, s=0.65)

Get a set of evenly spaced colors in HLS hue space.

h, l, and s should be between 0 and 1

Parameters:

n_colors : int

number of colors in the palette

h : float

first hue

l : float

lightness

s : float

saturation

Returns:

palette : seaborn color palette

List-like object of colors as RGB tuples.

See also

husl_palette
Make a palette using evently spaced circular hues in the HUSL system.

Examples

Create a palette of 10 colors with the default parameters:

>>> import seaborn as sns; sns.set()
>>> sns.palplot(sns.hls_palette(10))
../_images/seaborn-hls_palette-1.png

Create a palette of 10 colors that begins at a different hue value:

>>> sns.palplot(sns.hls_palette(10, h=.5))
../_images/seaborn-hls_palette-2.png

Create a palette of 10 colors that are darker than the default:

>>> sns.palplot(sns.hls_palette(10, l=.4))
../_images/seaborn-hls_palette-3.png

Create a palette of 10 colors that are less saturated than the default:

>>> sns.palplot(sns.hls_palette(10, s=.4))
../_images/seaborn-hls_palette-4.png