Graphics |
Setting Axis Parameters
When you create a graph, MATLAB automatically selects the axis limits and tick-mark spacing based on the data plotted. However, you can also specify your own values for axis limits and tick marks with the following commands:
axis
-- Sets values that affect the current axes object (the most recently created or the last clicked on).
axes
-- (Not axis) creates a new axes object with the specified characteristics.
get
and set
-- Enable you to query and set a wide variety of properties of existing axes.
gca
-- Returns the handle (identifier) of the current axes. If there are multiple axes in the figure window, the current axes is the last graph created or the last graph you clicked on with the mouse. The following two sections provide more information and examples:
Related Information
See Defining the View for more extensive information on manipulating 3-D views.
Plotting with Two Y-Axes | Axis Limits and Ticks |
© 1994-2005 The MathWorks, Inc.