hold

Turn on/off the "hold" state of axes. Toggle the states if no argument is used. When the "hold" state is on, new plotting data will be added into current axes.

Syntax

hold()

hold('on')

hold('off')

Inputs

on/off
Determines whether hold is set to on or off.
Type: string
Dimension: scalar

Example

Simple hold example.

figure(1)
hold('off')

Comments

If toggled on, new graphic objects will be added to the plot. If not they will be replaced.