inferno
Create inferno colormap.
Syntax
inferno()
inferno(n)
cmap = inferno(...)
Inputs
- n
- Length of the colormap (default: 64).
Outputs
- cmap
- Colormap in matrix format with size n x 3 (red, green and blue).
Example
Simple colormap using inferno:
x=[0:0.1:2*pi];
y=x;
z=sin(x')*cos(y);
contour(z);
cmap = inferno(256);
colormap(cmap);