Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create Cartesian axes

`axes`

`axes(Name,Value)`

`axes(parent,Name,Value)`

`ax = axes(___)`

`axes(cax)`

`axes`

creates the default Cartesian axes
in the current figure and makes it the current axes. Typically, you
do not need to create axes before plotting since graphics functions
automatically create axes when plotting if they do not exist.

`axes(`

modifies
the axes appearance or controls the way data displays using one or
more name-value pair arguments. For example, `Name,Value`

)`'FontSize',14`

sets
the font size for the axes text. For a list of properties, see Axes Properties.

`axes(`

creates
the axes in the figure, panel, or tab specified by `parent`

,`Name,Value`

)`parent`

,
instead of in the current figure.

returns
the `ax`

= axes(___)`Axes`

object created. Use `ax`

to
query and modify properties of the `Axes`

object after
it is created. For a list of properties, see Axes Properties.

`axes(`

makes the
axes or chart specified by `cax`

)`cax`

the current axes and brings
the parent figure into focus. This command also makes `cax`

the
first object listed in the `Children`

property of
the figure and sets the `CurrentAxes`

property of
the figure to `cax`

.