Description
Returns pre-defined ‘diverging xtra’ color palettes based on the HCL (Hue-Chroma-Luminance) color model.
Usage
divergingx_palettes(n=5, **kwargs)
Arguments
-
n
int
-
number of colors used when plotting, defaults to
5
.
-
**kwargs
-
forwarded to hcl_palettes. For a list and description of available arguments see the description of hcl_palettes.
Examples
from colorspace import divergingx_palettes
# Get palettes
divergingx_palettes()
HCL palettes
Type: Advanced: DivergingX
Names: ArmyRose, Earth, Fall, Geyser, TealRose, Temps, PuOr
RdBu, RdGy, PiYG, PRGn, BrBG, RdYlBu, RdYlGn, Spectral
Zissou 1, Cividis, Roma
# Visualize palettes
divergingx_palettes(n = 15, ncol = 2, plot = True, figsize = (7, 5));