hold('on')
hold('off')
hold('all')
hold()
hold(ax, ...)
| Parameter | Description |
|---|---|
| 'on' | turn hold on. |
| 'off' | turn hold off. |
| 'all' | same as hold on. |
| ax | Target axes: axes. |
| Parameter | Description |
|---|---|
| ax | a graphics object: axes type. |
hold allows to construct a plot sequence incrementally.
f = figure();
x = linspace(-pi, pi);
y1 = cos(x);
plot(x, y1)
hold on
y2 = sin(x);
plot(x, y2)
hold off
| Version | Description |
|---|---|
| 1.0.0 | initial version |