colorbar()
colorbar('off')
colorbar(..., propertyName, propertyValue)
colorbar(target, ...)
colorbar(target, 'off')
c = colorbar(...)
| Parameter | Description |
|---|---|
| propertyName | a scalar string or row vector character. |
| propertyValue | a value. |
| target | Target: axes. |
| 'off' | deletes colorbar associated with the current axes. |
| Parameter | Description |
|---|---|
| c | graphics object: axes on color bar. |
colorbar adds a color bar into a plot.
f = figure();
surf(peaks);
axis('square');
colormap('summer');
colorbar()
f = figure();
surf(peaks);
axis('square');
colormap('gray');
cb = colorbar(gca);
| Version | Description |
|---|---|
| 1.0.0 | initial version |