from colorspace.palettes import heat_hcl
pal = heat_hcl()
pal.colors(3)['#D33F6A', '#E99A2C', '#E2E6BD']
Documentation built with Python 3.11.10, pyp2qmd 0.1.1 and quarto 1.5.57 on GitHub.
heat_hcl is an implementation of the base R ‘heat.colors’ palette but constructed in HCL space based on a call to sequential_hcl.
See also: qualitative_hcl, sequential_hcl, diverging_hcl, divergingx_hcl, rainbow_hcl, terrain_hcl, diverging_hsv, and rainbow.
heat_hcl(h=[0, 90], c=[100, 30], l=[50, 90],
         power=[0.2, 1.0], fixup=True, rev=False,
         *args, **kwargs)
hlist of int
clist of int
lint
powerlist of float
fixupbool
revbool
*args
**kwargs
h1, h2, c1, c2, l1, l2, p1, p2.
Initialize new object, no return. Raises a set of errors if the parameters are misspecified. Note that the object is callable, the default object call can be used to return hex colors (identical to the .colors() method), see examples.
heat_hcl.cmap(n=256, name='custom_hcl_cmap')
heat_hcl.colors(n=11, fixup=None, alpha=None, **kwargs)
heat_hcl.get(key)
heat_hcl.hclplot(n=7, **kwargs)
heat_hcl.name()
heat_hcl.show_settings()
heat_hcl.specplot(n=180, *args, **kwargs)
heat_hcl.swatchplot(n=7, **kwargs)
['#D33F6A', '#E99A2C', '#E2E6BD']