Enable built-in axes interactions
Create a plot. Some interactions are enabled by default, such as scrolling to zoom. Disable these default interactions.
plot(magic(10)) ax = gca; disableDefaultInteractivity(ax)
Then, reenable the interactions.
Create a plot, and replace the default set of axes interactions with just the rotate and zoom interactions. Then disable the interactions.
plot(magic(10)) ax = gca; ax.Interactions = [rotateInteraction zoomInteraction]; disableDefaultInteractivity(ax)
Reenable the interactions you created.
Axes, specified as an
These interactions are for exploring charts using gestures, such as dragging to pan or
scrolling to zoom. They are built into the parent axes and are available without having to
select any of the buttons in the axes toolbar. Most types axes include a default set of
built-in interactions, but you can customize them by setting the
Interactions property of the axes.
If you do not want any of the interactions enabled, use the
disableDefaultInteractivity function to disable them. To enable them if they
are not already enabled, use the