Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Data cursor coordinates
Date: Wed, 30 Sep 2009 22:03:15 +0000 (UTC)
Organization: Loughborough University
Lines: 6
Message-ID: <ha0kj3$rkp$1@fred.mathworks.com>
References: <ha0j5l$n43$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1254348195 28313 172.30.248.38 (30 Sep 2009 22:03:15 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 30 Sep 2009 22:03:15 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:574082


"Matt " <xys@whatever.com> wrote in message <ha0j5l$n43$1@fred.mathworks.com>...
> Does anyone know if, when displaying images, it is possible to have the data cursor display 'ij' pixel coordinates, i.e. where X= RowNumber and Y=ColumnNumber?
> 
> The only thing I could think of trying is 'axis ij', but it made no difference.

You can customise the datatip. Right click on a datatip in the figure and go to 'edit text update function'. You can then edit the callback to return whatever you want in the output_txt variable.