Enable default axes interactions
Create a plot. Some interactions are enabled by default, such as using the scroll-wheel to zoom. Disable these default interactions.
plot(magic(10)) ax = gca; disableDefaultInteractivity(ax)
Then, reenable the default interactions.
Axes, specified as an
When you create a plot, some types of interactions are enabled by default. Other types of interactions are enabled only when you select buttons on the axes toolbar that appears above the top-right corner of the axes. The interactions that are enabled by default depend on the axes. However, typical default interactions include using the scroll-wheel to zoom in and out of the axes or hovering over a data point to see a data tip.
If you do not want any interactions enabled by default, use the
disableDefaultInteractivity function to disable them. To enable them if they
are not already enabled, use the