<?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: Plot performance	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/plot-performance/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/plot-performance?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=plot-performance</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Sun, 03 Jul 2022 14:32:53 +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/plot-performance#comment-514340</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 03 Jul 2022 14:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-514340</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/plot-performance#comment-514249&quot;&gt;Marcel&lt;/a&gt;.

Marcel - 12 years and ~25 releases since I wrote this article, it is no surprise at all that some things no longer work the same way. In fact, the surprising thing is that many things still do work the same way, not the reverse. In this specific case, you&#039;d need to rerun the profiler to see where the bottlenecks are in the new code, similar to what I described in the article.

Also see &lt;a href=&quot;http://undocumentedmatlab.com/articles/plot-performance#comment-368110&quot;&gt;my response above to this matter&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/plot-performance#comment-514249">Marcel</a>.</p>
<p>Marcel &#8211; 12 years and ~25 releases since I wrote this article, it is no surprise at all that some things no longer work the same way. In fact, the surprising thing is that many things still do work the same way, not the reverse. In this specific case, you&#8217;d need to rerun the profiler to see where the bottlenecks are in the new code, similar to what I described in the article.</p>
<p>Also see <a href="http://undocumentedmatlab.com/articles/plot-performance#comment-368110">my response above to this matter</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marcel		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-514249</link>

		<dc:creator><![CDATA[Marcel]]></dc:creator>
		<pubDate>Wed, 15 Jun 2022 08:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-514249</guid>

					<description><![CDATA[Hi,

I am trying to set the legend to Static, but this command seems not to work in R2022a anymore:
&lt;pre lang=&quot;matlab&quot;&gt;set(gca,&#039;LegendColorbarListeners&#039;,[]);&lt;/pre&gt;
Any ideas?
THANKS / marcel]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to set the legend to Static, but this command seems not to work in R2022a anymore:</p>
<pre lang="matlab">set(gca,'LegendColorbarListeners',[]);</pre>
<p>Any ideas?<br />
THANKS / marcel</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-453860</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 27 Nov 2018 19:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-453860</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/plot-performance#comment-452816&quot;&gt;Kavya M Managundi&lt;/a&gt;.

@Kavya - I&#039;m afraid that the slowness of uifigures (created by App-Designer) is due to inherent limitations in the uifigures, not to the dynamic/static nature of the colorbar or legend. It&#039;s true that static colorbars/legend will improve the speed a bit, but this will most probably be overshaddowed by uifigure&#039;s underlying slowness.

MathWorks is well aware of the slowness of uifigures and are actively improving this aspect in each new Matlab release, so upgrading to the latest Matlab release might help. However, note that uifigures are slower than Java-based figures even today (R2018b). Hopefully this performance gap will finally be closed in an upcoming Matlab release.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/plot-performance#comment-452816">Kavya M Managundi</a>.</p>
<p>@Kavya &#8211; I&#8217;m afraid that the slowness of uifigures (created by App-Designer) is due to inherent limitations in the uifigures, not to the dynamic/static nature of the colorbar or legend. It&#8217;s true that static colorbars/legend will improve the speed a bit, but this will most probably be overshaddowed by uifigure&#8217;s underlying slowness.</p>
<p>MathWorks is well aware of the slowness of uifigures and are actively improving this aspect in each new Matlab release, so upgrading to the latest Matlab release might help. However, note that uifigures are slower than Java-based figures even today (R2018b). Hopefully this performance gap will finally be closed in an upcoming Matlab release.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kavya M Managundi		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-452816</link>

		<dc:creator><![CDATA[Kavya M Managundi]]></dc:creator>
		<pubDate>Thu, 22 Nov 2018 19:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-452816</guid>

					<description><![CDATA[I&#039;m trying to set the static axis and legends in app designer where I have a startup callback function in which I&#039;m trying to read the COM port and when the terminator is reached a bytes available callback function has a imagesc to display the data. The x and y axis both are static and also the colormap and colorbar for imagesc, so I want to make them static but I don&#039;t how exactly to do this in app designer. Because most of the examples are provided for GUIDE. Thanks for your time and effort! I would like to know if there are any similar documents for app designer or any link in which such slow interface problem in app designer is addressed.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to set the static axis and legends in app designer where I have a startup callback function in which I&#8217;m trying to read the COM port and when the terminator is reached a bytes available callback function has a imagesc to display the data. The x and y axis both are static and also the colormap and colorbar for imagesc, so I want to make them static but I don&#8217;t how exactly to do this in app designer. Because most of the examples are provided for GUIDE. Thanks for your time and effort! I would like to know if there are any similar documents for app designer or any link in which such slow interface problem in app designer is addressed.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: thanh		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-399396</link>

		<dc:creator><![CDATA[thanh]]></dc:creator>
		<pubDate>Thu, 02 Feb 2017 16:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-399396</guid>

					<description><![CDATA[dear all;

I&#039;m working in my project and I want to draw 2 line in one axis, so I want to use set() function but I don&#039;t know how to code, Anyone had this problem please let me know. 

Thanks in advance]]></description>
			<content:encoded><![CDATA[<p>dear all;</p>
<p>I&#8217;m working in my project and I want to draw 2 line in one axis, so I want to use set() function but I don&#8217;t know how to code, Anyone had this problem please let me know. </p>
<p>Thanks in advance</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alex Perrone		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-368368</link>

		<dc:creator><![CDATA[Alex Perrone]]></dc:creator>
		<pubDate>Tue, 26 Jan 2016 00:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-368368</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/plot-performance#comment-368207&quot;&gt;Yair Altman&lt;/a&gt;.

Thanks Yair, appreciate the response. I had a bug in setting static axis limits for the plot. I was not setting them on the plot with the legend (but rather another plot mistakenly). I set static limits by manually calculating my own max and min for x- and y-values. Once this was corrected, this got rid of all the legend update calls. It reduced the number of function calls as enumerated by profile(&#039;info&#039;) from about 90 to 5, and time to update the plot (using set on XData and YData in all cases) from ~0.20 seconds to ~0.02 seconds, a 10x improvement. Persistence! Thanks, Yair.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/plot-performance#comment-368207">Yair Altman</a>.</p>
<p>Thanks Yair, appreciate the response. I had a bug in setting static axis limits for the plot. I was not setting them on the plot with the legend (but rather another plot mistakenly). I set static limits by manually calculating my own max and min for x- and y-values. Once this was corrected, this got rid of all the legend update calls. It reduced the number of function calls as enumerated by profile(&#8216;info&#8217;) from about 90 to 5, and time to update the plot (using set on XData and YData in all cases) from ~0.20 seconds to ~0.02 seconds, a 10x improvement. Persistence! Thanks, Yair.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-368207</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 23 Jan 2016 17:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-368207</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/plot-performance#comment-368110&quot;&gt;Alex Perrone&lt;/a&gt;.

@Alex - you can try the following in R2014b onward:
&lt;pre lang=&quot;matlab&quot;&gt;my_ax.AutoListeners__ = {};&lt;/pre&gt;

Note that there are less risky alternatives for disabling legend for specific plot lines, for example:
&lt;pre lang=&quot;matlab&quot;&gt;hasbehavior(hPlotLine,&#039;legend&#039;,false);&lt;/pre&gt;
as described here: http://undocumentedmatlab.com/blog/handle-graphics-behavior]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/plot-performance#comment-368110">Alex Perrone</a>.</p>
<p>@Alex &#8211; you can try the following in R2014b onward:</p>
<pre lang="matlab">my_ax.AutoListeners__ = {};</pre>
<p>Note that there are less risky alternatives for disabling legend for specific plot lines, for example:</p>
<pre lang="matlab">hasbehavior(hPlotLine,'legend',false);</pre>
<p>as described here: <a href="http://undocumentedmatlab.com/blog/handle-graphics-behavior" rel="ugc">http://undocumentedmatlab.com/blog/handle-graphics-behavior</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alex Perrone		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-368110</link>

		<dc:creator><![CDATA[Alex Perrone]]></dc:creator>
		<pubDate>Fri, 22 Jan 2016 15:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-368110</guid>

					<description><![CDATA[Great post. How can I implement static legend in 2014b? Specifically, given the axes handle, it doesn&#039;t let me implement your trick:
 
&lt;pre lang=&quot;matlab&quot;&gt;
set(my_ax, &#039;LegendColorbarListeners&#039;,[]);  % my_ax is the axes where the legend is
Error using matlab.graphics.axis.Axes/set
There is no LegendColorbarListeners property on the Axes class.
&lt;/pre&gt;

However, if I change it to setappdata , that works: setappdata(my_ax, &#039;LegendColorbarListeners&#039;,[]). I can also do the other two calls with setappdata, but they don&#039;t seem to help performance at all. I set them before and after making the legend and also at beginning of my &#039;update&#039; function, to no avail -- still a whole bunch of slow legend updates. Any ideas to make static legend in 2014b?]]></description>
			<content:encoded><![CDATA[<p>Great post. How can I implement static legend in 2014b? Specifically, given the axes handle, it doesn&#8217;t let me implement your trick:</p>
<pre lang="matlab">
set(my_ax, 'LegendColorbarListeners',[]);  % my_ax is the axes where the legend is
Error using matlab.graphics.axis.Axes/set
There is no LegendColorbarListeners property on the Axes class.
</pre>
<p>However, if I change it to setappdata , that works: setappdata(my_ax, &#8216;LegendColorbarListeners&#8217;,[]). I can also do the other two calls with setappdata, but they don&#8217;t seem to help performance at all. I set them before and after making the legend and also at beginning of my &#8216;update&#8217; function, to no avail &#8212; still a whole bunch of slow legend updates. Any ideas to make static legend in 2014b?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Performance-Tweaks beim Plotten mit MATLAB &#124; Stefan Grandl		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-347227</link>

		<dc:creator><![CDATA[Performance-Tweaks beim Plotten mit MATLAB &#124; Stefan Grandl]]></dc:creator>
		<pubDate>Sat, 28 Mar 2015 12:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-347227</guid>

					<description><![CDATA[[...]    [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;]    [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/plot-performance#comment-345350</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 08 Feb 2015 08:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1623#comment-345350</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/plot-performance#comment-345334&quot;&gt;chfakht&lt;/a&gt;.

@chfakht - I assume that there is some programmatic or algorithmic bug in your program. From what you describe, it seems that the problem is not in the code performance (speed), but rather in the code correctness. If you&#039;d like me to help you debug your program, contact me by email for a consulting offer.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/plot-performance#comment-345334">chfakht</a>.</p>
<p>@chfakht &#8211; I assume that there is some programmatic or algorithmic bug in your program. From what you describe, it seems that the problem is not in the code performance (speed), but rather in the code correctness. If you&#8217;d like me to help you debug your program, contact me by email for a consulting offer.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
