leniax.colormaps package

Leniax colormaps

class leniax.colormaps.PerceptualGradientColormap(name, hex_bg_color, hex_colors)[source]

Perceptual gradient colormap

Parameters
  • name (str) –

  • hex_bg_color (str) –

  • hex_colors (List[str]) –

Return type

None

name

Colormap name

Type

str

hex_bg_color

Background color (in hexadecimal)

Type

str

hex_colors

List of colors used to create the perceptual gradient

Type

List[str]

cmap

Matplotlib ListedColormap

Type

matplotlib.colors.ListedColormap