Set or query x-axis limits
xlim auto
lets the axes choose the x-axis
limits. The axes chooses limits that span the range of the plotted
data. This command sets the XLimMode
property for
the axes to 'auto'
.
xlim manual
freezes the limits at the current
values. Use this option if you want to retain the current limits when
adding new data to the axes using the hold on
command.
This command sets the XLimMode
property for the
axes to 'manual'
.
returns
the current value of the limits mode, which is either m
= xlim('mode')'auto'
or 'manual'
.
By default, the mode is automatic unless you specify limits or set
the mode to manual.
___ = xlim(
uses
the axes specified by ax
,___)ax
instead of the current
axes. The ax
input argument can precede any of
the input arguments in the previous syntaxes. Use single quotes around
input arguments that are character vectors, for example, xlim(ax,'auto')
and xlim(ax,'manual')
.
You can include any of the output arguments in the preceding syntaxes
if the original syntax supports an output argument.
grid
| xlabel
| xtickformat
| xticklabels
| xticks
| ylim
| zlim