clim(limits)
clim('auto')
clim('manual')
clim(ax, ...)
lims = clim()
| Parameter | Description |
|---|---|
| limits | New limits: [cmin cmax]. |
| 'auto' | enables automatic limit updates when values in the colormap indexing array change. |
| 'manual' | disables automatic limit update. |
| ax | Target object: axes graphics object. |
| Parameter | Description |
|---|---|
| lims | [cmin cmax] |
clim set or get colormap limits.
f = figure();
[X,Y] = meshgrid(-5:.5:5);
Z = X .^ 2 + Y .^ 2;
surf(Z);
limits = clim()
f = figure();
[X,Y] = meshgrid(-5:.5:5);
Z = X.^2 + Y.^2;
surf(Z);
clim([25 75])
limits = clim()
| Version | Description |
|---|---|
| 1.0.0 | initial version |