<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026</link>
    <title>MATLAB Central Newsreader - Data cursor coordinates</title>
    <description>Feed for thread: Data cursor coordinates</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 30 Sep 2009 21:39:01 -0400</pubDate>
      <title>Data cursor coordinates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#683813</link>
      <author>Matt </author>
      <description>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?&lt;br&gt;
&lt;br&gt;
The only thing I could think of trying is 'axis ij', but it made no difference.</description>
    </item>
    <item>
      <pubDate>Wed, 30 Sep 2009 21:51:01 -0400</pubDate>
      <title>Re: Data cursor coordinates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#683814</link>
      <author>Matt Fig</author>
      <description>I don't know if the built-in data cursor can do this or not.  I bet you could easily modify GUI_24 to do this though.  As it is, the coordinates are displayed as a title.  &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/24861&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/24861&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 30 Sep 2009 22:03:15 -0400</pubDate>
      <title>Re: Data cursor coordinates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#683817</link>
      <author>Dave Brackett</author>
      <description>&quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;ha0j5l$n43$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; 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?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The only thing I could think of trying is 'axis ij', but it made no difference.&lt;br&gt;
&lt;br&gt;
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.</description>
    </item>
    <item>
      <pubDate>Wed, 30 Sep 2009 23:30:36 -0400</pubDate>
      <title>Re: Data cursor coordinates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#683820</link>
      <author>Matt </author>
      <description>&quot;Dave Brackett&quot; &amp;lt;davebrackett@hotmail.com&amp;gt; wrote in message &amp;lt;ha0kj3$rkp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
============&lt;br&gt;
&lt;br&gt;
Thanks a lot (you too, Matt).&lt;br&gt;
&lt;br&gt;
But this raises a few more questions (you'll have to bear with me, I don't do a lot of graphics programming and so I'm not very conversant with notions of events and callbacks). &lt;br&gt;
&lt;br&gt;
The old call back function gets used whenever I open a new figure. How do I make it so that my custom callback is always used? How would I later restore the factory default?</description>
    </item>
    <item>
      <pubDate>Thu, 01 Oct 2009 09:33:03 -0400</pubDate>
      <title>Re: Data cursor coordinates</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#683900</link>
      <author>Matt </author>
      <description>OK. Never mind. I figured it out. &lt;br&gt;
&lt;br&gt;
Thanks again.</description>
    </item>
    <item>
      <pubDate>Sat, 07 Nov 2009 19:05:03 -0500</pubDate>
      <title>Re: Data cursor coordinates -- increasing precision or number of decimal places</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#692920</link>
      <author>Richard Sonnenfeld</author>
      <description>I stumbled across the thread because I was looking for a way to change the&lt;br&gt;
number of decimal digits (precision) displayed by the data cursor (or data-tip) as they&lt;br&gt;
seem to call it.   Four digits is not necessarily enough for fine work.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;It turns out to be easy -- once you think of it.  The poster&lt;br&gt;
figured out his question.  I'll document what he discovered when he said &quot;nevermind --&lt;br&gt;
I got it.&quot;&lt;br&gt;
&lt;br&gt;
1) Select Data Cursor tool and click a point on your plot&lt;br&gt;
2) Right click the tool and select &quot;Edit Text Update Function&quot;&lt;br&gt;
3) On line 8 you will see an expression &quot;output_txt = ... (pos(1),4)...&lt;br&gt;
(pos(1),4)...&lt;br&gt;
4) Change the ,4's to ,7's or whatever level of precision you need.&lt;br&gt;
5) Save the file as &quot;custom_cursor.m&quot; (or whatever you like&lt;br&gt;
6) Next time you need to use the cursor, repeat step 1, but then Right Click and&lt;br&gt;
select &quot;Select  Text Update Function&quot;.  Now select your custom_cursor.m and&lt;br&gt;
you will have your customized cursor.&lt;br&gt;
7) The cursor always returns to its default state.  For now, I don't mind selecting custom_cursor every time I need one.  I'll be happy to have a suggestion on how to permanently change the cursor if someone feels like making one.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 23:31:12 -0500</pubDate>
      <title>Re: Data cursor coordinates -- increasing precision or number of decimal places</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#693095</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Richard Sonnenfeld&quot; &amp;lt;pcardout@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:hd4gcv$mmi$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I stumbled across the thread because I was looking for a way to change the&lt;br&gt;
&amp;gt; number of decimal digits (precision) displayed by the data cursor (or &lt;br&gt;
&amp;gt; data-tip) as they&lt;br&gt;
&amp;gt; seem to call it.   Four digits is not necessarily enough for fine work.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It turns out to be easy -- once you think of it.  The poster&lt;br&gt;
&amp;gt; figured out his question.  I'll document what he discovered when he said &lt;br&gt;
&amp;gt; &quot;nevermind --&lt;br&gt;
&amp;gt; I got it.&quot;&lt;br&gt;
&lt;br&gt;
*snip*&lt;br&gt;
&lt;br&gt;
&amp;gt; I'll be happy to have a suggestion on how to permanently change the cursor &lt;br&gt;
&amp;gt; if someone feels like making one.&lt;br&gt;
&lt;br&gt;
Enable the data cursor using the DATACURSORMODE function and change the &lt;br&gt;
Updatefcn property to use your custom text update function.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datacursormode.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datacursormode.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
If you want to automatically enable data cursor mode with your custom &lt;br&gt;
Updatefcn whenever you create a figure, set the default Figure CreateFcn to &lt;br&gt;
call DATACURSORMODE as I described above.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; </description>
    </item>
    <item>
      <pubDate>Fri, 26 Mar 2010 21:12:02 -0400</pubDate>
      <title>Re: Data cursor coordinates -- increasing precision or number of decimal places</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/262026#730405</link>
      <author>Matthew </author>
      <description>Thank you, now I have my custom datatip text update function enabled via my startup script.&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;hd7ka5$lq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Richard Sonnenfeld&quot; &amp;lt;pcardout@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:hd4gcv$mmi$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I stumbled across the thread because I was looking for a way to change the&lt;br&gt;
&amp;gt; &amp;gt; number of decimal digits (precision) displayed by the data cursor (or &lt;br&gt;
&amp;gt; &amp;gt; data-tip) as they&lt;br&gt;
&amp;gt; &amp;gt; seem to call it.   Four digits is not necessarily enough for fine work.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; It turns out to be easy -- once you think of it.  The poster&lt;br&gt;
&amp;gt; &amp;gt; figured out his question.  I'll document what he discovered when he said &lt;br&gt;
&amp;gt; &amp;gt; &quot;nevermind --&lt;br&gt;
&amp;gt; &amp;gt; I got it.&quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; *snip*&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'll be happy to have a suggestion on how to permanently change the cursor &lt;br&gt;
&amp;gt; &amp;gt; if someone feels like making one.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Enable the data cursor using the DATACURSORMODE function and change the &lt;br&gt;
&amp;gt; Updatefcn property to use your custom text update function.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datacursormode.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datacursormode.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you want to automatically enable data cursor mode with your custom &lt;br&gt;
&amp;gt; Updatefcn whenever you create a figure, set the default Figure CreateFcn to &lt;br&gt;
&amp;gt; call DATACURSORMODE as I described above.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com&lt;br&gt;
&amp;gt; comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; &lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

