seaborn.
husl_palette
(n_colors=6, h=0.01, s=0.9, l=0.65)¶Get a set of evenly spaced colors in HUSL hue space.
h, s, and l should be between 0 and 1
Parameters: | n_colors : int
h : float
s : float
l : float
|
---|---|
Returns: | palette : seaborn color palette
|
See also
hls_palette
Examples
Create a palette of 10 colors with the default parameters:
>>> import seaborn as sns; sns.set()
>>> sns.palplot(sns.husl_palette(10))
Create a palette of 10 colors that begins at a different hue value:
>>> sns.palplot(sns.husl_palette(10, h=.5))
Create a palette of 10 colors that are darker than the default:
>>> sns.palplot(sns.husl_palette(10, l=.4))
Create a palette of 10 colors that are less saturated than the default:
>>> sns.palplot(sns.husl_palette(10, s=.4))