enableDefaultInteractivity
Enable the built-in axes interactions.
📝Syntax
enableDefaultInteractivity(ax)
📥Input Arguments
Parameter Description
ax a scalar graphics object value: an axes.
📄Description

enableDefaultInteractivity(ax) turns the built-in interactions of the axes ax back on after they were turned off with disableDefaultInteractivity.

With the built-in interactions on, dragging the cursor over the axes pans the content (or rotates it for a 3-D view) and the scroll wheel zooms.

This is the default state of a new axes.

💡Examples
plot(1:1000, sin(1:1000))
ax = gca();
disableDefaultInteractivity(ax);
enableDefaultInteractivity(ax);
🔗See Also
disableDefaultInteractivitypanzoom
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub