Code covered by the BSD License  

Highlights from
Data cursors for figure window

4.5

4.5 | 4 ratings Rate this file 19 Downloads (last 30 days) File Size: 8.76 KB File ID: #14093
image thumbnail

Data cursors for figure window

by Malcolm Lidierth

 

26 Feb 2007 (Updated 24 May 2011)

Data cursor support for multiple axes in a fugure

| Watch this File

File Information
Description

Several related functions:

CreateCursor sets up a vertical cursor on all axes in a figure. The cursors can be moved around using the mouse.
Multiple cursors are supported in each figure

GetCursorLocation returns the location of a cursor while SetCursorLocation sets it.

DeleteCursor removes a cursor.

Objects belonging to each cursor have their handles stored in the figure application data area. Callbacks for each object serve to link their position on the axes.

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
07 May 2007 charli chen

very good and useful. However, the cursor will meet some problems when you zoom in/out, or move the figure.

17 Nov 2010 Stephane

Great ! I That is exactly what I need !

Thanks a lot

24 May 2011 Mel

Thanks! This is great. Is there any way to implement this inside a GUI?

25 May 2011 Malcolm Lidierth

Mel
Update posted. This is more flexible. Axes in a GUI should be OK - though I do not use GUIDE so have not checked that.

29 Dec 2011 Francis

Horizontal cursors would also be extremely useful!

Please login to add a comment or rating.
Updates
30 Oct 2007

Minor improvements

24 May 2011

Improved functionality

Tag Activity for this File
Tag Applied By Date/Time
data exploration Malcolm Lidierth 22 Oct 2008 09:02:07
cursors Malcolm Lidierth 22 Oct 2008 09:02:07
gui Malcolm Lidierth 22 Oct 2008 09:02:07
axes Malcolm Lidierth 22 Oct 2008 09:02:07
graphics Malcolm Lidierth 22 Oct 2008 09:02:07
figure Malcolm Lidierth 22 Oct 2008 09:02:07
cursors Sébastien 22 Mar 2011 09:33:30
cursors Roland 06 Dec 2011 11:36:53

Contact us at files@mathworks.com