Skip to main content

Module colormap

Module colormap 

Source
Expand description

Colormap LUT data and imagesc rendering (ASCII and SVG/PNG).

Enums§

ColormapSpec
A colormap specification: either a built-in named colormap or a custom N×3 look-up table supplied by the user.

Constants§

VALID_COLORMAPS
All supported colormap names.

Functions§

apply_colormap
Maps a normalised value t ∈ [0, 1] to an (R, G, B) triple.
apply_colormap_spec
Maps a normalised value t ∈ [0, 1] to an (R, G, B) triple using spec.
validate_colormap
Validates a colormap name.
validate_colormap_spec
Validates a ColormapSpec, returning an error string on failure.