Path: news.mathworks.com!not-for-mail
From: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to set the position of the data cursor programmitcally
Date: Thu, 16 Aug 2007 17:44:25 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 19
Message-ID: <fa22do$ago$1@fred.mathworks.com>
References: <1187270538.292278.206410@19g2000hsx.googlegroups.com>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187286265 10776 172.30.248.37 (16 Aug 2007 17:44:25 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Aug 2007 17:44:25 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:424183


You can use the linkprop function to link your data cursors'
xdata/ydata/zdata properties.

A related info bit (I know this is not what you asked) that
users may find interesting is how to programmatically move
the mouse cursor (pointer). The answer is to
set(0,'PointerLocation',newPosition) or to use the moveptr
function. Note: MathWorks considers moveptr as unsupported -
it's partly documented (it has a help section, but no doc
page), but when I tried reporting some internal bugs and
fixes to MathWorks I got the "undocumented & unsupported"
shrug-off... You need to pass it handle(hAx) where hAx is
your axes handle, and it works well in simple cases
(non-complicated GUIs). moveptr.m is editable and so can
easily be adapted by anyone interested.

Yair Altman
http://ymasoftware.com