FUNCTION REFERENCE

clim

Set or query the colour limits of the current axes.

Set or query the colour limits of the current axes.

Syntax

clim([cmin cmax])

Syntax

lim = clim

Syntax

clim('auto')

Syntax

clim(ax, [cmin cmax])

The colour limits map the first and last colormap rows to data values; the colorbar shows this range. Without colour-mapped data the automatic limits are [0 1].

Example

plot(1:3); clim([-2 5]); clim   % [-2 5]

Differences from MATLAB: No plot kind maps data to colours yet, so the limits only affect the colorbar scale.

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