<?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: Legend &#039;-DynamicLegend&#039; semi-documented feature	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/legend-semi-documented-feature/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=legend-semi-documented-feature</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 01 Jun 2017 11:31:04 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Manuel		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-407733</link>

		<dc:creator><![CDATA[Manuel]]></dc:creator>
		<pubDate>Thu, 01 Jun 2017 11:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-407733</guid>

					<description><![CDATA[Thx for providing DynamicLegend, I really like it!
One question though: Is it possible, to add new items on the bottom instead of a vertical legend? That would be really great. Or maybe this even works with a general command to flip the legend after it was generated? But I couldn&#039;t find such thing :(

Thx &#038; Best,
Manuel]]></description>
			<content:encoded><![CDATA[<p>Thx for providing DynamicLegend, I really like it!<br />
One question though: Is it possible, to add new items on the bottom instead of a vertical legend? That would be really great. Or maybe this even works with a general command to flip the legend after it was generated? But I couldn&#8217;t find such thing 🙁</p>
<p>Thx &amp; Best,<br />
Manuel</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sachin Patel		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-368259</link>

		<dc:creator><![CDATA[Sachin Patel]]></dc:creator>
		<pubDate>Sun, 24 Jan 2016 11:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-368259</guid>

					<description><![CDATA[Thanks a lot man for letting us know about -DynamicLegend...i was really needed this kind of function as i was using for loop and in that plotting plot for n times while required to have legends for each plot...Again Thanks a lot]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot man for letting us know about -DynamicLegend&#8230;i was really needed this kind of function as i was using for loop and in that plotting plot for n times while required to have legends for each plot&#8230;Again Thanks a lot</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-367219</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 11 Jan 2016 18:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-367219</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-367218&quot;&gt;Clark&lt;/a&gt;.

@Clark - if your plot contains so many dynamic plot lines, then for both visual design and performance reasons I would strongly suggest using some other mechanism...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-367218">Clark</a>.</p>
<p>@Clark &#8211; if your plot contains so many dynamic plot lines, then for both visual design and performance reasons I would strongly suggest using some other mechanism&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Clark		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-367218</link>

		<dc:creator><![CDATA[Clark]]></dc:creator>
		<pubDate>Mon, 11 Jan 2016 18:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-367218</guid>

					<description><![CDATA[Thanks for letting the world know about the -DynamicLegend feature.  Note that it appears to be limited to at most 50 entries, at least in R2015b.  Plots beyond the first 50 simply don&#039;t appear in the legend created by legend(&#039;-DynamicLegend&#039;)]]></description>
			<content:encoded><![CDATA[<p>Thanks for letting the world know about the -DynamicLegend feature.  Note that it appears to be limited to at most 50 entries, at least in R2015b.  Plots beyond the first 50 simply don&#8217;t appear in the legend created by legend(&#8216;-DynamicLegend&#8217;)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: treeTable &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-234359</link>

		<dc:creator><![CDATA[treeTable &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Tue, 06 Aug 2013 07:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-234359</guid>

					<description><![CDATA[[...] Matlab 7.0 (R14), Matlab has included a built-in GUI table control (uitable), at first as a semi-documented function and in release 7.6 (R2008a) as a fully-documented function. Useful as this control is, it [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Matlab 7.0 (R14), Matlab has included a built-in GUI table control (uitable), at first as a semi-documented function and in release 7.6 (R2008a) as a fully-documented function. Useful as this control is, it [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Handle Graphics Behavior &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-168257</link>

		<dc:creator><![CDATA[Handle Graphics Behavior &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 06 Mar 2013 18:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-168257</guid>

					<description><![CDATA[[...] is not updated directly (although there is absolutely nothing to prevent this), but rather via the semi-documented built-in accessor functions hggetbehavior and hgaddbehavior [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] is not updated directly (although there is absolutely nothing to prevent this), but rather via the semi-documented built-in accessor functions hggetbehavior and hgaddbehavior [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rafraichir une lÃ©gende (part II) &#124; MATLAB pour les geeks		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-109003</link>

		<dc:creator><![CDATA[Rafraichir une lÃ©gende (part II) &#124; MATLAB pour les geeks]]></dc:creator>
		<pubDate>Thu, 13 Sep 2012 14:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-109003</guid>

					<description><![CDATA[[...] Yair Altman m&#8217;a contacté pour me notifier qu&#8217;il avait également écrit un billet sur ce sujet le 4 juin 2009 : Legend ‘-DynamicLegend’ semi-documented feature [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Yair Altman m&rsquo;a contacté pour me notifier qu&rsquo;il avait également écrit un billet sur ce sujet le 4 juin 2009 : Legend ‘-DynamicLegend’ semi-documented feature [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Customizing menu items part 1 &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-83190</link>

		<dc:creator><![CDATA[Customizing menu items part 1 &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 25 Apr 2012 18:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-83190</guid>

					<description><![CDATA[[...]  Menu callbacks generally use internal semi-documented functions (i.e., having a readable help section but no doc, online help, or official support) [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;]  Menu callbacks generally use internal semi-documented functions (i.e., having a readable help section but no doc, online help, or official support) [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-78517</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 19:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-78517</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-70611&quot;&gt;Stephan&lt;/a&gt;.

@Stephan - yes: You can access the Refresh uicontextmenu item (and any other context-menu item) directly from the legend axes, and then run it via the &lt;a href=&quot;http://undocumentedmatlab.com/blog/hgfeval/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;&lt;i&gt;hgfeval&lt;/i&gt;&lt;/b&gt; function&lt;/a&gt;, as follows:

&lt;pre lang=&quot;matlab&quot;&gt;
hLegend = findall(gcf,&#039;tag&#039;,&#039;legend&#039;);
uic = get(hLegend,&#039;UIContextMenu&#039;);
uimenu_refresh = findall(uic,&#039;Label&#039;,&#039;Refresh&#039;);
callback = get(uimenu_refresh,&#039;Callback&#039;);
hgfeval(callback,[],[]);
&lt;/pre&gt;

For the record, this invokes the &lt;i&gt;refresh_cb&lt;/i&gt; function within &lt;i&gt;%matlabroot%/toolbox/matlab/scribe/@scribe/@legend/methods.m&lt;/i&gt;. You can place a breakpoint there to see exactly what it does internally.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-70611">Stephan</a>.</p>
<p>@Stephan &#8211; yes: You can access the Refresh uicontextmenu item (and any other context-menu item) directly from the legend axes, and then run it via the <a href="http://undocumentedmatlab.com/blog/hgfeval/" target="_blank" rel="nofollow"><b><i>hgfeval</i></b> function</a>, as follows:</p>
<pre lang="matlab">
hLegend = findall(gcf,'tag','legend');
uic = get(hLegend,'UIContextMenu');
uimenu_refresh = findall(uic,'Label','Refresh');
callback = get(uimenu_refresh,'Callback');
hgfeval(callback,[],[]);
</pre>
<p>For the record, this invokes the <i>refresh_cb</i> function within <i>%matlabroot%/toolbox/matlab/scribe/@scribe/@legend/methods.m</i>. You can place a breakpoint there to see exactly what it does internally.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-78028</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 17 Mar 2012 18:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=357#comment-78028</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-77742&quot;&gt;Teodor&lt;/a&gt;.

@Teodor - try placing a &lt;b&gt;&lt;i&gt;drawnow&lt;/i&gt;&lt;/b&gt; after plotting the lines and before trying to access the hidden &lt;b&gt;ScribeLegendListeners&lt;/b&gt; property. It is also possible that you are trying to access this property on a handle of another object (maybe one of the line plots, or a figure, or another axes), rather than the handle of the axes that holds the plots for the requested legend.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/legend-semi-documented-feature#comment-77742">Teodor</a>.</p>
<p>@Teodor &#8211; try placing a <b><i>drawnow</i></b> after plotting the lines and before trying to access the hidden <b>ScribeLegendListeners</b> property. It is also possible that you are trying to access this property on a handle of another object (maybe one of the line plots, or a figure, or another axes), rather than the handle of the axes that holds the plots for the requested legend.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
