Nodes ▸ Functions ▸ Colors

Colormap

Maps an array, or one dataset component, through a colormap to RGBA colors for a Plot's colors input. It supports reversal, color limits, log scaling and alpha.

Colormapx

Inputs

PortAcceptsRequiredDescription
x primitive(array) dataset required Scalar values to map (array, or a dataset component)

Parameter ports

Added from the Parameters pane (⊕). While connected, each drives its parameter.

PortAcceptsModeDescription
alpha
Alpha
primitive(array) primitive(number) opt-in Per-row alpha override (a scalar, or one value per row)
clim primitive(array) opt-in
drives clim
Drives the Color limits parameter while connected

Outputs

primitive(array)

Parameters

ParameterKindDefaultChoices / rangeUnitNotes
Component
component
choice none values | values_r | values_theta | values_phi | scale_r | scale_theta | scale_phi | points | points_r | points_t | points_p
Colormap
cmap
colormap viridis
Reverse colormap
reverse
bool false
Color limits
clim
range none ⇄ port
Log Scale
log_scale
bool false
Alpha
alpha
float 1 0 to 1, step 0.05

Used by

No stock template or group uses this node.