Skip to content

axes

Create or activate axes within a figure.

h = axes
h = axes(h, ...)

Creates new axes in the current figure, or activates the axes referenced by handle h. Subsequent plot commands target the active axes. Trailing name-value pairs set axes properties ('XLim', 'YScale', etc.).

h = axes;
axes('XLim', [0 10])
  • figure — Create or activate a chart sheet (figure window).
  • subplot — Create or activate one of multiple axes in a grid.
  • gca — Handle to the current axes.
  • set — Set property values on a graph object.