<?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: Pinning annotations to graphs	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pinning-annotations-to-graphs</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 02 Aug 2016 06:37:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-384727</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 02 Aug 2016 06:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-384727</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-384725&quot;&gt;yaron&lt;/a&gt;.

@Yaron - this post was written in 2012 and was extensively researched, so I believe that it &lt;b&gt;does&lt;/b&gt; work on R2012a. My hunch is that either you have a bug in your code, or perhaps your figure window has some element which causes the annotation scribe layer to behave differently. Try to recreate my example on a new empty figure and then try to see what is different in your existing code/figure.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-384725">yaron</a>.</p>
<p>@Yaron &#8211; this post was written in 2012 and was extensively researched, so I believe that it <b>does</b> work on R2012a. My hunch is that either you have a bug in your code, or perhaps your figure window has some element which causes the annotation scribe layer to behave differently. Try to recreate my example on a new empty figure and then try to see what is different in your existing code/figure.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: yaron		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-384725</link>

		<dc:creator><![CDATA[yaron]]></dc:creator>
		<pubDate>Tue, 02 Aug 2016 06:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-384725</guid>

					<description><![CDATA[Hi @Yair Altman 
I&#039;m using MATLAB 2012a, and unfortunately it doesn&#039;t work here.
Is there any solution to this??]]></description>
			<content:encoded><![CDATA[<p>Hi @Yair Altman<br />
I&#8217;m using MATLAB 2012a, and unfortunately it doesn&#8217;t work here.<br />
Is there any solution to this??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-346663</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 14 Mar 2015 16:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-346663</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-346610&quot;&gt;Marcas&lt;/a&gt;.

@Marcas - it is possible that the change in behavior changed across Matlab releases. It is using undocumented/unsupported internal code after all...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-346610">Marcas</a>.</p>
<p>@Marcas &#8211; it is possible that the change in behavior changed across Matlab releases. It is using undocumented/unsupported internal code after all&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marcas		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-346610</link>

		<dc:creator><![CDATA[Marcas]]></dc:creator>
		<pubDate>Fri, 13 Mar 2015 15:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-346610</guid>

					<description><![CDATA[This is a great resource, thank you.

I did notice one thing while using the code.  Where you have
&lt;pre lang=&#039;matlab&#039;&gt;x = [xValue, xValue];&lt;/pre&gt;
I had different values for x(1) and x(2).  When the coordinate conversion is done by the call to &lt;code&gt;hgconvertunits&lt;/code&gt;, something is wrong with x(2).  After the calls to pin the annotation, in particular:
&lt;pre lang=&#039;matlab&#039;&gt;hAnnotation.Pin(2).DataPosition = [x(2), y(2), 0];&lt;/pre&gt;
it is in the expected position.

Marcas]]></description>
			<content:encoded><![CDATA[<p>This is a great resource, thank you.</p>
<p>I did notice one thing while using the code.  Where you have</p>
<pre lang='matlab'>x = [xValue, xValue];</pre>
<p>I had different values for x(1) and x(2).  When the coordinate conversion is done by the call to <code>hgconvertunits</code>, something is wrong with x(2).  After the calls to pin the annotation, in particular:</p>
<pre lang='matlab'>hAnnotation.Pin(2).DataPosition = [x(2), y(2), 0];</pre>
<p>it is in the expected position.</p>
<p>Marcas</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-338291</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 21 Nov 2014 11:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-338291</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-338256&quot;&gt;HongKee Yoon&lt;/a&gt;.

A lot of things broke in R2014b due to the replacement of the graphics engine in this release (HG2). There&#039;s probably a new way to do the same functionality in HG2, but I do not have the time or inclination to dive into this at the moment. Feel free to investigate and if you find out anything useful, come back here and place a comment for the benefit of others.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-338256">HongKee Yoon</a>.</p>
<p>A lot of things broke in R2014b due to the replacement of the graphics engine in this release (HG2). There&#8217;s probably a new way to do the same functionality in HG2, but I do not have the time or inclination to dive into this at the moment. Feel free to investigate and if you find out anything useful, come back here and place a comment for the benefit of others.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: HongKee Yoon		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-338256</link>

		<dc:creator><![CDATA[HongKee Yoon]]></dc:creator>
		<pubDate>Fri, 21 Nov 2014 01:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-338256</guid>

					<description><![CDATA[@ 2014b this dose not works.
Is there any solution to this??]]></description>
			<content:encoded><![CDATA[<p>@ 2014b this dose not works.<br />
Is there any solution to this??</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Britt		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-323125</link>

		<dc:creator><![CDATA[Britt]]></dc:creator>
		<pubDate>Mon, 21 Apr 2014 23:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-323125</guid>

					<description><![CDATA[Hi Yair,

What about pinning annotation shapes such as ellipses and rectangles? Is there another property besides DataPosition that should be set for the length/width of these objects?

Thanks.]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>What about pinning annotation shapes such as ellipses and rectangles? Is there another property besides DataPosition that should be set for the length/width of these objects?</p>
<p>Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chani		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-318675</link>

		<dc:creator><![CDATA[Chani]]></dc:creator>
		<pubDate>Fri, 14 Mar 2014 08:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-318675</guid>

					<description><![CDATA[Your code for pinning annotations to axis worked fine for doublearrows. 
I also tried it for textboxes, which are located on the doublearrows. 
Unfortunately Matlab gives me the error: 

&quot;Parameter must be a handle array.&quot;

My Code:

&lt;pre lang=&quot;matlab&quot;&gt; 
tAnnotation = handle(annotation(&#039;textbox&#039;, [x(1),0.72,0.1,0.1],&#039;String&#039;, &#039;Text&#039;,&#039;LineStyle&#039;,&#039;none&#039;));
tAnnotation.pinAtAffordance(1);
tAnnotation.Pin(1).DataPosition = [timeOUTPlot(index1:index1), 10, 0];
&lt;/pre&gt;

Maybe you have some ideas? :-)]]></description>
			<content:encoded><![CDATA[<p>Your code for pinning annotations to axis worked fine for doublearrows.<br />
I also tried it for textboxes, which are located on the doublearrows.<br />
Unfortunately Matlab gives me the error: </p>
<p>&#8220;Parameter must be a handle array.&#8221;</p>
<p>My Code:</p>
<pre lang="matlab"> 
tAnnotation = handle(annotation('textbox', [x(1),0.72,0.1,0.1],'String', 'Text','LineStyle','none'));
tAnnotation.pinAtAffordance(1);
tAnnotation.Pin(1).DataPosition = [timeOUTPlot(index1:index1), 10, 0];
</pre>
<p>Maybe you have some ideas? 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-211972</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 13 Jun 2013 09:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-211972</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-211954&quot;&gt;Andy&lt;/a&gt;.

@Andy - I don&#039;t see why a textbox annotation cannot be used. Try playing with the relevant properties. If you&#039;d like me to investigate this specific issue for you, email me.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-211954">Andy</a>.</p>
<p>@Andy &#8211; I don&#8217;t see why a textbox annotation cannot be used. Try playing with the relevant properties. If you&#8217;d like me to investigate this specific issue for you, email me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andy		</title>
		<link>https://undocumentedmatlab.com/articles/pinning-annotations-to-graphs#comment-211954</link>

		<dc:creator><![CDATA[Andy]]></dc:creator>
		<pubDate>Thu, 13 Jun 2013 08:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3398#comment-211954</guid>

					<description><![CDATA[Yair, thank you for this great tip. Can we do similar with textbox annotation objects? I was playing with rewriting the code, but no success so far.]]></description>
			<content:encoded><![CDATA[<p>Yair, thank you for this great tip. Can we do similar with textbox annotation objects? I was playing with rewriting the code, but no success so far.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
