Code covered by the BSD License  

Highlights from
drag.m

5.0

5.0 | 9 ratings Rate this file 8 Downloads (last 30 days) File Size: 3.49 KB File ID: #3813

drag.m

by Ryan Eustice

 

05 Aug 2003 (Updated 30 Jan 2004)

Allows the user to navigate a 2D/3D plot similar to the Adobe "hand" interface.

| Watch this File

File Information
Description

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.

Acknowledgements
This submission has inspired the following:
INTERACTIVEMOUSE
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
08 Aug 2003 Scott Hirsch

Fantastic!

08 Aug 2003 Rick Auch

Yes, fantastic. Very useful.

10 Aug 2003 Ju Zhang

Should be included in Matlab.

16 Aug 2003 Boyko Stoimenov

A must have.

20 Aug 2003 Mark Brown

Truly EXCELLENT! This function should be in everyone's toolbox. Much better than the PAN.M function I submitted a few weeks prior.

30 Sep 2003 Murray Thomson

Just what I was looking for. Many thanks.

17 Oct 2003 Christopher Wingard

Thank you! I've been looking for something like this for a while now.

28 Nov 2003 tom turbo  
31 Jan 2005 Mr Wonderful

Very nicely engineered.
This should be part of MATLAB.

Please login to add a comment or rating.
Updates
18 Aug 2003

Updated behavior to correctly work with plot legends.

30 Jan 2004

Updated behavior to correctly work with plot legends and colorbars.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Ryan Eustice 22 Oct 2008 07:05:56
plot Ryan Eustice 22 Oct 2008 07:05:56
drag Ryan Eustice 22 Oct 2008 07:05:56
graphics Ryan Eustice 22 Oct 2008 07:05:56
display Ryan Eustice 22 Oct 2008 07:05:56
figure Ryan Eustice 22 Oct 2008 07:05:56
axes Ryan Eustice 22 Oct 2008 07:05:56
axis Ryan Eustice 22 Oct 2008 07:05:56
zoom Ryan Eustice 22 Oct 2008 07:05:56

Contact us at files@mathworks.com