Graphics Previous page   Next Page

Individual Axis Control

MATLAB automatically determines axis limits, tick mark placement, and tick mark labels whenever you create a graph. However, you can specify these values manually by setting the appropriate property.

When you specify a value for a property controlled by a mode (e.g., the XLim property has an associated XLimMode property), MATLAB sets the mode to manual, enabling you to override automatic specification. Because the default values for these mode properties are automatic, calling high-level functions such as plot or surf resets these modes to auto.

This section discusses the following properties.

Property
Purpose
XLim,YLim,ZLim
Sets the axis range
XLimMode,
YLimMode,
ZLimMode
Specifies whether axis limits are determined automatically by MATLAB or specified manually by the user
XTick,
YTick,
ZTick
Sets the location of the tick marks along the axis
XTickMode,
YTickMode,
ZTickMode
Specifies whether tick mark locations are determined automatically by MATLAB or specified manually by the user
XTickLabel,
YTickLabel,
ZTickLabel
Specifies the labels for the axis tick marks
XTickLabelMode, YTickLabelMode, ZTickLabelMode
Specifies whether tick mark labels are determined automatically by MATLAB or specified manually by the user
XDir,YDir,ZDir
Sets the direction of increasing axis values


Previous page  Multiple Axes for Different Scaling Setting Axis Limits Next page

© 1994-2005 The MathWorks, Inc.