You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
DRAG: Move around on a 2-D or 3-D plot.
When plot dragging is on, you can click and drag the axes around while maintaining the current level of zoom. In a figure with multiple subplots, pressing and holding the left mouse button drags around the currently active subplot, while pressing and holding the right mouse button drags around all subplots simultaneously. Double clicking with the left mouse button restores the currently active plot to its restore point, while double clicking with the right mouse button restores all subplots to their defined restore point.
Cite As
Ryan Eustice (2026). drag.m (https://nl.mathworks.com/matlabcentral/fileexchange/3813-drag-m), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: INTERACTIVEMOUSE
General Information
- Version 1.0.0.0 (3.49 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Updated behavior to correctly work with plot legends and colorbars. |
