FUNCTION REFERENCE

viridis

Viridis colormap: dark blue through green to yellow.

Viridis colormap: dark blue through green to yellow.

Syntax

map = viridis

Syntax

map = viridis(n)

Returns an n-by-3 matrix of RGB rows (256 by default), interpolated from the published 256-entry viridis table (van der Walt and Smith, 2015, released CC0). It is MatRust's default colormap.

Example

m = viridis(3); size(m)   % [3 3]

Differences from MATLAB: MATLAB has no viridis function; it is provided because its table may be reproduced.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.