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.
Inputs
| Port | Accepts | Required | Description |
|---|---|---|---|
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.
| Port | Accepts | Mode | Description |
|---|---|---|---|
alphaAlpha | 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
| Parameter | Kind | Default | Choices / range | Unit | Notes |
|---|---|---|---|---|---|
Componentcomponent | choice | none | values | values_r | values_theta | values_phi | scale_r | scale_theta | scale_phi | points | points_r | points_t | points_p | ||
Colormapcmap | colormap | viridis | |||
Reverse colormapreverse | bool | false | |||
Color limitsclim | range | none | ⇄ port | ||
Log Scalelog_scale | bool | false | |||
Alphaalpha | float | 1 | 0 to 1, step 0.05 |
Used by
No stock template or group uses this node.