lucid_cmap

lucid_cmap(c, name=None, **kwargs)[source]

Create a colormap from a color, interpolating alpha between 0 and 1.

Parameters:
  • c (color-like) – The color corresponding to full saturation.

  • name (str, default c (if a str) or hex(c)) – Colormap name prefix, ‘_lucid’ is appended.

  • **kwargs – Keyword arguments passed to LinearSegmentedColormap

Returns:

Lucid colormap.

Return type:

LinearSegmentedColormap