<< grid Matlab-like plotting library image >>

Matlab-like plotting library >> Matlab-like plotting library > hold

hold

holds/releases current graph limits.

Calling Sequence

hold(cmd)

Parameters

cmd

string

Description

HOLD ON holds the current plot and all axis properties so that subsequent graphing commands add to the existing graph. HOLD OFF returns to the default mode whereby PLOT commands erase the previous plots and reset all axis properties before drawing new plots. HOLD, by itself, toggles the hold state.

Examples

t=linspace(0,2*%pi,64);
plot(t,sin(t));
hold on
plot(t,cos(t));
hold off

See Also

Authors


Report an issue
<< grid Matlab-like plotting library image >>