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 by. You can do this 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 the chapter Defining the View for more extensive information on manipulating 3-D views.
Plotting with Two Y-Axes | Axis Limits and Ticks |