from_hsl(name, hue=0, saturation=100, luminance=(100, 20), alpha=None, ratios=None, **kwargs)¶
PerceptuallyUniformColormapby specifying the hue, saturation, and luminance transitions individually.
name (str, optional) – The colormap name.
hue (float, str, or list thereof, optional) – Hue channel value or list of values. Values can be any of the following.
Numbers, within the range 0-360 for hue and 0-100 for saturation and luminance.
Color string names or hex strings, in which case the channel value for that color is looked up.
If scalar, the hue does not change across the colormap.
saturation, luminance, alpha (float, str, or list thereof, optional) – As with
hue, but for the saturation, luminance, and alpha (opacity) channels, respectively.
ratios (list of float, optional) – Relative extents of each color transition. Must have length
len(colors) - 1. Larger numbers indicate a slower transition, smaller numbers indicate a faster transition.
ratios=[2,1]results in a colormap with the transition from luminance
50taking twice as long as the transition from luminance
- Other Parameters
**kwargs – Passed to
PerceptuallyUniformColormap– The colormap.