Set axis limits and appearance

`axis(`

sets
the limits for the current axes. If the current axes is a Cartesian
axes, then specify `limits`

)`limits`

as a four-element vector
of the form `[xmin xmax ymin ymax]`

to set the *x*-axis
and *y*-axis limits. To also set the *z*-axis
limits, specify a six-element vector. To also set the color limits,
specify an eight-element vector. If the current axes is a polar axes,
then specify `limits`

as a four-element vector to
set the theta-axis and *r*-axis limits.

`axis `

uses a
predefined style to set the limits and scaling. For example, specify
the style as `style`

`equal`

to use equal data unit lengths
along each axis.

`axis `

sets whether
the axes automatically chooses the limits or not. Specify the mode
as `mode`

`manual`

, `auto`

, or one of the
semiautomatic options, for example, `'auto x'`

.

`axis `

controls
the placement of the coordinate system origin and the direction of
increasing `ydirection`

*y* values. Set `ydirection`

to `ij`

to
place the origin at the upper left corner of the axes. The *y* values
increase from top to bottom. Set `ydirection`

to `xy`

to
place the origin at the lower left corner. The *y* values
increase from bottom to top. This is the default value.

`axis `

controls
the visibility of the axes or polar axes background. Set `visibility`

`visibility`

to `off`

to
turn off the display of the axes background. Plots in the axes still
display. Set `visibility`

to `on`

to
display the axes background. This is the default value.

returns
the `lim`

= axis*x*-axis and *y*-axis limits
for the current axes. For 3-D axes, it also returns the *z*-axis
limits. For polar axes, it returns the theta-axis and *r*-axis
limits.

`___ = axis(`

uses
the axes or polar axes specified by `ax`

,___)`ax`

instead
of the current axes. Specify `ax`

as the first input
argument. You can include additional input or output arguments only
if the original syntax supported them. Use single quotes around input
arguments that are character strings, for example, `axis(ax,'equal')`

.

Was this topic helpful?