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.
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!
Update posted. This is more flexible. Axes in a GUI should be OK - though I do not use GUIDE so have not checked that.
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
very good and useful. However, the cursor will meet some problems when you zoom in/out, or move the figure.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.