Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Data cursor coordinates -- increasing precision or number of decimal places
Date: Sun, 8 Nov 2009 18:31:12 -0500
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <hd7ka5$lq$1@fred.mathworks.com>
References: <ha0j5l$n43$1@fred.mathworks.com> <ha0kj3$rkp$1@fred.mathworks.com> <ha0pms$bhc$1@fred.mathworks.com> <ha1t0f$s9l$1@fred.mathworks.com> <hd4gcv$mmi$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1257723013 698 172.31.44.65 (8 Nov 2009 23:30:13 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Nov 2009 23:30:13 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:583429



"Richard Sonnenfeld" <pcardout@gmail.com> wrote in message 
news:hd4gcv$mmi$1@fred.mathworks.com...
>I stumbled across the thread because I was looking for a way to change the
> number of decimal digits (precision) displayed by the data cursor (or 
> data-tip) as they
> seem to call it.   Four digits is not necessarily enough for fine work.
>
> It turns out to be easy -- once you think of it.  The poster
> figured out his question.  I'll document what he discovered when he said 
> "nevermind --
> I got it."

*snip*

> I'll be happy to have a suggestion on how to permanently change the cursor 
> if someone feels like making one.

Enable the data cursor using the DATACURSORMODE function and change the 
Updatefcn property to use your custom text update function.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datacursormode.html

If you want to automatically enable data cursor mode with your custom 
Updatefcn whenever you create a figure, set the default Figure CreateFcn to 
call DATACURSORMODE as I described above.

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ