Synchronize limits of specified 2-D axes
linkaxes(ax)
linkaxes(ax,'option
')
Use linkaxes
to synchronize the individual
axis limits across several figures or subplots within a figure. Calling linkaxes
makes
all input axes have identical limits. Linking axes is best when you
want to zoom or pan in one subplot and display the same range of data
in another subplot.
Note:
Use |
linkaxes(ax)
links the x-
and y-axis limits of the axes specified in the
vector ax
. You can link any number of existing
plots or subplots. The ax
input should be a vector
of Cartesian axes objects. Entering an array of values results in
an error message.
linkaxes(ax,'
links
the axes' option
')ax
according to the specified option.
The 'option'
argument can be one of these
values:
'x' | Link x-axis only. |
'y' | Link y-axis only. |
'xy' | Link x-axis and y-axis. |
'off' | Remove linking. |
See the linkprop
function
for more advanced capabilities that allow you to link object properties
on any graphics object.