Input Arguments

Parent container, specified as a Figure object created using
the uifigure function, or one of its child
containers: Tab, Panel, ButtonGroup, or GridLayout. If you do not specify a parent container,
MATLAB calls the uifigure function to create a new Figure object that serves as the parent container.

Name-Value Pair Arguments

Specify optional
comma-separated pairs of Name,Value arguments. Name is
the argument name and Value is the corresponding value.
Name must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN.

Minimum and maximum limits, specified as a two-element vector of the form
[min max], where max is greater than
min. You can specify the limits as numeric, categorical,
datetime, or duration values. However, the type of values that you specify must match
the type of values along the axis.

You can specify both limits or you can specify one limit and let the axes
automatically calculate the other. For an automatically calculated minimum or maximum
limit, use -inf or inf, respectively.

Size and location of axes, including the labels and margins,
specified as a four-element vector of the form [left bottom
width height]. This vector defines a rectangle that encloses
the outer bounds of the axes. The left and bottom elements
define the position of the rectangle, measured from the lower left
corner to the lower left corner of the parent container. The width and height define
the size of the rectangle. The values are measured in units determined
by the Units property. By default, the units are
pixels.

Output Arguments

ax — UIAxes objectUIAxes object

UIAxes object. Use ax
to set properties of the UIAxes after they
are created.

Tips

Zoom, pan, and rotate modes only support a subset of options for UI axes.
zoom only supports the on,
off, and zoom factor arguments.
rotate3d and pan only support the
on and off arguments. The recommended
way to interact with charts in the UI axes is to use the axes toolbar or the
built-in axes interactions. For more information, see Control Chart Interactivity.