ishold
Current hold state
Syntax
tf = ishold
tf = ishold(ax)
Description
tf = ishold
returns the hold state of the current axes. The return state is1
ifhold
ison
, and0
if it isoff
. Whenhold
ison
, the current plot and most axes properties are held so that subsequent graphing commands add to the existing graph. If there is no figure,ishold
returns0
and MATLAB®creates a new figure.
tf = ishold(ax)
returns the hold state of the specified axes object, which can be anAxes
,PolarAxes
, orGeographicAxes
object. You can also specifyax
as an array of multiple axes objects that belong to the same class (use theclass
function to determine the class).
一个国家的hold on
implies that both figure and axesNextPlot
properties are set to'add'
.