<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding annotations to graphs</title>
	<atom:link href="http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/</link>
	<description>Mike works on the MATLAB Desktop team</description>
	<lastBuildDate>Thu, 16 Feb 2012 04:13:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Trine</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-7217</link>
		<dc:creator>Trine</dc:creator>
		<pubDate>Wed, 04 Aug 2010 12:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-7217</guid>
		<description>How do you place the arrow if it has to be exactly on the graph?
Say I have a function f(x) and I want an arrow from f(1) to f(2). It can be difficult to do that precisely, especially when having several graphs (like trajectories in a phase portrait for an ODE)
I&#039;ve tryed with 
annotation(&#039;arrow&#039;, [1, 2], [f(1), f(2)])
but annotation uses the grid of the whole figure so these are not the correct points.
Anyway to do this?</description>
		<content:encoded><![CDATA[<p>How do you place the arrow if it has to be exactly on the graph?<br />
Say I have a function f(x) and I want an arrow from f(1) to f(2). It can be difficult to do that precisely, especially when having several graphs (like trajectories in a phase portrait for an ODE)<br />
I&#8217;ve tryed with<br />
annotation(&#8216;arrow&#8217;, [1, 2], [f(1), f(2)])<br />
but annotation uses the grid of the whole figure so these are not the correct points.<br />
Anyway to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natasha</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6925</link>
		<dc:creator>Natasha</dc:creator>
		<pubDate>Thu, 18 Mar 2010 01:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6925</guid>
		<description>Back to the click to annotate thread, I&#039;ve found the easiest way to do this is to change the update function for the regular old data cursor (see datacursormode documentation).

I had an array in my workspace that I wanted to reference for my annotation. Most of the update function can even be auto-generated if you right click on the figure with the data cursor toggled and select &#039;Edit Text Update Function...&#039; My callback function was as simple as: 

&lt;pre&gt;
function output_txt = myfunction(obj,event_obj)
% Display the position of the data cursor
% obj          Currently not used (empty)
% event_obj    Handle to event object
% output_txt   Data cursor text string (string or cell array of strings).

load Excd46401 Excd  %My reference array.

idx = get(event_obj,&#039;DataIndex&#039;); %Return index of position

output_txt = {[&#039;Type: &#039;,Excd.Type{idx}]}; %Specify text.

end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Back to the click to annotate thread, I&#8217;ve found the easiest way to do this is to change the update function for the regular old data cursor (see datacursormode documentation).</p>
<p>I had an array in my workspace that I wanted to reference for my annotation. Most of the update function can even be auto-generated if you right click on the figure with the data cursor toggled and select &#8216;Edit Text Update Function&#8230;&#8217; My callback function was as simple as: </p>
<pre>
function output_txt = myfunction(obj,event_obj)
% Display the position of the data cursor
% obj          Currently not used (empty)
% event_obj    Handle to event object
% output_txt   Data cursor text string (string or cell array of strings).

load Excd46401 Excd  %My reference array.

idx = get(event_obj,'DataIndex'); %Return index of position

output_txt = {['Type: ',Excd.Type{idx}]}; %Specify text.

end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shower Enclosures</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6827</link>
		<dc:creator>Shower Enclosures</dc:creator>
		<pubDate>Wed, 03 Feb 2010 00:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6827</guid>
		<description>Completely agree with your comments on this - thanks for taking the time to post.</description>
		<content:encoded><![CDATA[<p>Completely agree with your comments on this &#8211; thanks for taking the time to post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6299</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Wed, 17 Jun 2009 23:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6299</guid>
		<description>@Elmer - take a look at my DataMatrix submission on the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/16181

It does almost exactly what you need, so you can get everything with only minor modifications of its source code.

Yair</description>
		<content:encoded><![CDATA[<p>@Elmer &#8211; take a look at my DataMatrix submission on the File Exchange: <a href="http://www.mathworks.com/matlabcentral/fileexchange/16181" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/16181</a></p>
<p>It does almost exactly what you need, so you can get everything with only minor modifications of its source code.</p>
<p>Yair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elmer Fittery</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6298</link>
		<dc:creator>Elmer Fittery</dc:creator>
		<pubDate>Wed, 17 Jun 2009 19:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-6298</guid>
		<description>I have a gui to display a matrix in terms of colors.

1-10 is yellow
11-20 is blue
21-30 is green, etc, etc.

When I move my cursor over the gui, which is a box with
a bunch squares filled with colors, I want to modify the
text associated with the text message attached to the box.

So as I move my cursor over a boxed color, I want to display
@(x, y) is: value, where x and y is matrix index of the boxed color and the value is the value associated with the boxed color.

Any suggestions on where I can find how to create a mouse-over callback and use &quot;set(gca, mouse-over, &#039;&#039;);&quot;

thanks</description>
		<content:encoded><![CDATA[<p>I have a gui to display a matrix in terms of colors.</p>
<p>1-10 is yellow<br />
11-20 is blue<br />
21-30 is green, etc, etc.</p>
<p>When I move my cursor over the gui, which is a box with<br />
a bunch squares filled with colors, I want to modify the<br />
text associated with the text message attached to the box.</p>
<p>So as I move my cursor over a boxed color, I want to display<br />
@(x, y) is: value, where x and y is matrix index of the boxed color and the value is the value associated with the boxed color.</p>
<p>Any suggestions on where I can find how to create a mouse-over callback and use &#8220;set(gca, mouse-over, &#8221;);&#8221;</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-4441</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 06 May 2008 12:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-4441</guid>
		<description>Pat,

 Without knowing the details of your issue, I would say go to copy options and try using the &quot;match screen size&quot; and &quot;bitmap&quot; options before copying. 

If that does not help, and you have a license with software maintenance, you should contact technical support (with the same &quot;request a feature&quot; link on the right sidebar) or if not, ping the community on comp.soft-sys.matlab (MATLAB newsgroup link on the top navigation bar).</description>
		<content:encoded><![CDATA[<p>Pat,</p>
<p> Without knowing the details of your issue, I would say go to copy options and try using the &#8220;match screen size&#8221; and &#8220;bitmap&#8221; options before copying. </p>
<p>If that does not help, and you have a license with software maintenance, you should contact technical support (with the same &#8220;request a feature&#8221; link on the right sidebar) or if not, ping the community on comp.soft-sys.matlab (MATLAB newsgroup link on the top navigation bar).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-4432</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Mon, 05 May 2008 20:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-4432</guid>
		<description>James,
I like using the annotation, but I often find that when I copy the plot and paste it into a document, the arrows and text have changed location and/or size in the pasted version.  Sometime, I manually shift things around to get them to line up in the correct spot, but usually I give up on annotating them in Matlab and wait until I am in Word or PowerPoint to do the annotation.  However, I would really like to be able to do the annotation in Matlab since it is much more intuitive.

How can I get around these resizing and repositioning problems?</description>
		<content:encoded><![CDATA[<p>James,<br />
I like using the annotation, but I often find that when I copy the plot and paste it into a document, the arrows and text have changed location and/or size in the pasted version.  Sometime, I manually shift things around to get them to line up in the correct spot, but usually I give up on annotating them in Matlab and wait until I am in Word or PowerPoint to do the annotation.  However, I would really like to be able to do the annotation in Matlab since it is much more intuitive.</p>
<p>How can I get around these resizing and repositioning problems?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-3426</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Sat, 01 Mar 2008 00:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-3426</guid>
		<description>Hi Tim,

I agree...that sounds like a useful feature. I&#039;ve forwarded your request on to the appropriate team.

Thanks for the great feedback,
-Ken</description>
		<content:encoded><![CDATA[<p>Hi Tim,</p>
<p>I agree&#8230;that sounds like a useful feature. I&#8217;ve forwarded your request on to the appropriate team.</p>
<p>Thanks for the great feedback,<br />
-Ken</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-3425</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 29 Feb 2008 21:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-3425</guid>
		<description>I think what Hao is requesting is something just like the &#039;TooltipString&#039; property on uicontrols and the built in tool tips that pop-up when you mouse over the figure toolbar buttons.  I&#039;d like to second that request.  Is it possible to add a &#039;TooltipString&#039; property to graphics objects such as lines, patches, surfaces, etc.?  And maybe even a &#039;MouseHoverFcn&#039; property that defines a function to call when the mouse is hovered over the object.  This is just like the existing ButtonDownFcn property but wouldn&#039;t require a mouse click.  (The MouseHoverFcn would just allow more end user customization over a simple tooltip display.)</description>
		<content:encoded><![CDATA[<p>I think what Hao is requesting is something just like the &#8216;TooltipString&#8217; property on uicontrols and the built in tool tips that pop-up when you mouse over the figure toolbar buttons.  I&#8217;d like to second that request.  Is it possible to add a &#8216;TooltipString&#8217; property to graphics objects such as lines, patches, surfaces, etc.?  And maybe even a &#8216;MouseHoverFcn&#8217; property that defines a function to call when the mouse is hovered over the object.  This is just like the existing ButtonDownFcn property but wouldn&#8217;t require a mouse click.  (The MouseHoverFcn would just allow more end user customization over a simple tooltip display.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-3402</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 27 Feb 2008 22:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2007/11/01/adding-annotations-to-graphs/#comment-3402</guid>
		<description>Hi Hao,

I see what your driving at (I think) - you want to be able to toggle the &lt;i&gt;annotations&lt;/i&gt; when you click them (or maybe have them popup when you mouse over them).

I&#039;ll forward along your request!

-Ken</description>
		<content:encoded><![CDATA[<p>Hi Hao,</p>
<p>I see what your driving at (I think) &#8211; you want to be able to toggle the <i>annotations</i> when you click them (or maybe have them popup when you mouse over them).</p>
<p>I&#8217;ll forward along your request!</p>
<p>-Ken</p>
]]></content:encoded>
	</item>
</channel>
</rss>

