pan
pan option
pan(fig, ...)
pan(ax, ...)
| Parameter | Description |
|---|---|
| option | string: 'on', 'off', 'out', 'xon', 'yon' or 'toggle'. |
| fig | Figure object: Target figure |
| ax | a scalar graphics object value: parent container, specified as a axes. |
Use pan mode to adjust axis limits during interactive data exploration.
Enable or disable the pan mode and configure additional basic settings using the pan function.
Pan mode works with line, bar, histogram, and surface charts. These charts typically provide a pan icon on the toolbar.
pan option configures the pan mode for all axes within the current figure.
Once pan mode is active, you can adjust the view of axes using the cursor, or keyboard:
Cursor: Click and drag the cursor in the axes.
Keyboard: To pan horizontally, press the left arrow (←) or the right arrow (->) key. To pan vertically, press the up arrow (↑) or the down arrow (↓) key.
The pan mode option can be specified using one of the following values:
'toggle' : Toggles the pan mode. If pan mode is disabled, 'toggle' reverts to the most recently used pan option of 'on', 'xon', or 'yon'. This option behaves the same as calling pan without any arguments.
'xon' : Enables pan mode for the x-dimension exclusively.
'yon' : Activates pan mode for the y-dimension exclusively.
'on' : Activates pan mode.
'off' : Deactivates pan mode. Note that certain default interactions may persist regardless of the interaction mode.
surf(peaks)
pan on
| Version | Description |
|---|---|
| 1.2.0 | initial version |