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

By default, the axes have built-in interactions enabled: dragging the cursor over the axes pans the content (or rotates it for a 3-D view), and the scroll wheel zooms.

disableDefaultInteractivity(ax) turns these built-in interactions off for the axes ax.

The axes toolbar and the pan, zoom, and rotate modes enabled from the toolbar or programmatically are not affected.

Use enableDefaultInteractivity to turn the built-in interactions back on.

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