You can customize axes by changing the limits, controlling the locations of the tick marks, formatting the tick labels, or adding grid lines. You also can combine multiple plots, either using separate axes in the same figure, or by combining the plots in the same axes, with the option to add a second y-axis.
|Display or hide axes grid lines|
|Set or query x-axis tick values|
|Set or query y-axis tick values|
|Set or query z-axis tick values|
|Set or query x-axis tick labels|
|Set or query y-axis tick labels|
|Set or query z-axis tick labels|
|Specify x-axis tick label format|
|Specify y-axis tick label format|
|Specify z-axis tick label format|
|Rotate x-axis tick labels|
|Rotate y-axis tick labels|
|Rotate z-axis tick labels|
|Date formatted tick labels|
|Convert data from specific ruler to numeric data|
|Convert numeric data for use with specific ruler|
|Retain current plot when adding new plots|
|Create chart with two y-axes|
|Add legend to axes|
|Set color order for visualizing multiple data series|
Control where data appears in the axes by setting the axis limits.
Customize the tick values and labels along an axis, such as editing the tick value placement or modifying the tick label text and formatting.
Add grid lines to a graph and modify their placement and appearance.
This example shows how to use graphics and font smoothing in MATLAB plots.
Show multiple plots together in the same figure, either by combining the plots in the same axes or by creating a tiled chart layout.
Create a chart with y-axes on both the left and right sides.
Modify charts with two y-axes by setting axes properties or by accessing the underlying ruler objects.
Create a graph with two x-axes and two
y-axes by overlaying two separate
Control the axis and data unit lengths by setting the plot box aspect ratio and the data aspect ratio.
Set axes properties to control the axes size and position, the layout of titles and labels, and the axes resize behavior.
This example shows how MATLAB® uses clipping in plots and how to control clipping.