# Default diverging HCL palette
from colorspace import diverging_hcl
= diverging_hcl()
pal pal.specplot()
Color Spectrum Plot
Description
Interfacing the colorspace.specplot.specplot function. Plotting the spectrum of the current color palette.
Usage
sequential_hcl.specplot(n=180, *args, **kwargs)
Arguments
-
n
int
- Number of colors, defaults to 180.
-
*args
- Forwarded to colorspace.specplot.specplot.
-
**kwargs
- Forwarded to colorspace.specplot.specplot.
Examples
= True) pal.specplot(rgb
# Default sequential HCL palette
from colorspace import sequential_hcl
= sequential_hcl()
pal = (8, 4)) pal.specplot(figsize
# Default qualitative HCL palette
from colorspace import qualitative_hcl
= qualitative_hcl()
pal = (8, 4), hcl = False, rgb = True) pal.specplot(figsize