File Exchange

image thumbnail

Data cursors for figure window

version 1.2 (8.76 KB) by

Data cursor support for multiple axes in a fugure



View License

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.

Comments and Ratings (6)

Looks very good, but I have problems using it with GUIDE.

After creating two cursors in the OpeningFcn, I cannot move them. I have tried to save the cursors and pass them to the figure ButtonDownFcn , but nothing happens. Any hint?


Horizontal cursors would also be extremely useful!

Malcolm Lidierth

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


Mel (view profile)

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


Great ! I That is exactly what I need !

Thanks a lot

charli chen

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



Improved functionality

MATLAB Release
MATLAB 7.3 (R2006b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today