rulerPanInteraction
Ruler-pan interaction
Description
A ruler-pan interaction allows you to pan an axis without having to select any
buttons in the axes toolbar. To enable ruler panning, set the
Interactions
property of the axes to a
rulerPanInteraction
object. When this interaction is enabled, you can pan
an axis by dragging it.
To enable multiple interactions, set the Interactions
property to an
array of objects.
Creation
Description
rp = rulerPanInteraction
creates a ruler-pan interaction
object.
rp = rulerPanInteraction('Dimensions',d)
sets the Dimensions
property.
Use this property to constrain panning to a single axis or a subset of axes. For example,
rp = rulerPanInteraction('Dimensions','x')
constrains panning to the
x-axis.
Properties
Examples
Tips
In most cases, the axes have a default set of interactions which depend on the type of chart you are displaying. You can replace the default set with a new set of interactions, but you cannot access or modify any of the interactions in the default set.
Version History
Introduced in R2019a