<?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: Improving graphics interactivity	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/improving-graphics-interactivity/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=improving-graphics-interactivity</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Fri, 05 May 2023 06:21:14 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Alessandro Beda		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-521464</link>

		<dc:creator><![CDATA[Alessandro Beda]]></dc:creator>
		<pubDate>Fri, 05 May 2023 06:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-521464</guid>

					<description><![CDATA[I found what I think is a bug related to this (tested in R2022 and R2023a). If I add a &quot;ButtonDownFcn&quot; to the plots (see example below), then the modified interaction stops working completely. 
&lt;pre lang=&quot;Matlab&quot;&gt;
hFig = figure(&#039;Pos&#039;,[10,10,400,300]);
hTabGroup = uitabgroup(hFig);
for iTab = 1 : 10
    hTab = uitab(hTabGroup, &#039;title&#039;,num2str(iTab));
    hPanel = uipanel(hTab);
    for iPanel = 1 : 10
        hPanel = uipanel(hPanel);
    end
    hAxes(iTab) = axes(hPanel); %see MLint note below
    plot(hAxes(iTab),1:5,&#039;-ob&#039;,&#039;ButtonDownFcn&#039;,&#039;disp(&quot;hello&quot;)&#039;);
    hAxes(iTab).Interactions = [zoomInteraction regionZoomInteraction rulerPanInteraction];
    hAxes(iTab).Toolbar = [];
end
drawnow
&lt;/pre&gt;
Is this an expected behaviour?]]></description>
			<content:encoded><![CDATA[<p>I found what I think is a bug related to this (tested in R2022 and R2023a). If I add a &#8220;ButtonDownFcn&#8221; to the plots (see example below), then the modified interaction stops working completely. </p>
<pre lang="Matlab">
hFig = figure('Pos',[10,10,400,300]);
hTabGroup = uitabgroup(hFig);
for iTab = 1 : 10
    hTab = uitab(hTabGroup, 'title',num2str(iTab));
    hPanel = uipanel(hTab);
    for iPanel = 1 : 10
        hPanel = uipanel(hPanel);
    end
    hAxes(iTab) = axes(hPanel); %see MLint note below
    plot(hAxes(iTab),1:5,'-ob','ButtonDownFcn','disp("hello")');
    hAxes(iTab).Interactions = [zoomInteraction regionZoomInteraction rulerPanInteraction];
    hAxes(iTab).Toolbar = [];
end
drawnow
</pre>
<p>Is this an expected behaviour?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-508302</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Mon, 16 Mar 2020 15:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-508302</guid>

					<description><![CDATA[When I use the suggestion above to set the &#039;defaultAxesCreateFcn&#039;, it works as expected in that the axes toolbar is gone and the default behavior is to zoom. However, double-click does not reset the axes as it does when i manually select the zooming tool. Is there an easy way around this?]]></description>
			<content:encoded><![CDATA[<p>When I use the suggestion above to set the &#8216;defaultAxesCreateFcn&#8217;, it works as expected in that the axes toolbar is gone and the default behavior is to zoom. However, double-click does not reset the axes as it does when i manually select the zooming tool. Is there an easy way around this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Collin		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-500868</link>

		<dc:creator><![CDATA[Collin]]></dc:creator>
		<pubDate>Tue, 01 Oct 2019 00:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-500868</guid>

					<description><![CDATA[A potential lightweight alternative to the standard axes toolbar is the FloatingPalette
&lt;pre lang=&quot;matlab&quot;&gt;hFTB = controllib.plot.internal.FloatingPalette(FigureHandle, ButtonList)&lt;/pre&gt;

It&#039;s not as pretty as the standard axes toolbar and has less button options but does not fade, works best for single axes figures.

You need to set the standard toolbar invisible or set it to empty before creating the floating palette.
&lt;pre lang=&quot;matlab&quot;&gt;
hAxes.Toolbar.Visible = &#039;off&#039;;  % or:
hAxes.Toolbar = [];
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>A potential lightweight alternative to the standard axes toolbar is the FloatingPalette</p>
<pre lang="matlab">hFTB = controllib.plot.internal.FloatingPalette(FigureHandle, ButtonList)</pre>
<p>It&#8217;s not as pretty as the standard axes toolbar and has less button options but does not fade, works best for single axes figures.</p>
<p>You need to set the standard toolbar invisible or set it to empty before creating the floating palette.</p>
<pre lang="matlab">
hAxes.Toolbar.Visible = 'off';  % or:
hAxes.Toolbar = [];
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Komutan Logar		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-500592</link>

		<dc:creator><![CDATA[Komutan Logar]]></dc:creator>
		<pubDate>Sun, 29 Sep 2019 12:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-500592</guid>

					<description><![CDATA[Thank you very much. I&#039;m using dynamic plotting, moving particles, only one figure created as a digraph. The performance has slightly improved and I also didn&#039;t need the toolbox and interactions(I removed them all) anyway. I would like to ask if it makes any difference if I remove the toolbox and interactions in the AxesCreationFcn or after the figure is created by using ax = gca; ax.Interactions = []; ?]]></description>
			<content:encoded><![CDATA[<p>Thank you very much. I&#8217;m using dynamic plotting, moving particles, only one figure created as a digraph. The performance has slightly improved and I also didn&#8217;t need the toolbox and interactions(I removed them all) anyway. I would like to ask if it makes any difference if I remove the toolbox and interactions in the AxesCreationFcn or after the figure is created by using ax = gca; ax.Interactions = []; ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-485599</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 05 Jul 2019 16:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-485599</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-485598&quot;&gt;Jeremiah&lt;/a&gt;.

@Jeremiah - perhaps the default interactions are implemented only as the last step in the axes creation sequence, after the user-specified AxesCreationFcn callback has already executed.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-485598">Jeremiah</a>.</p>
<p>@Jeremiah &#8211; perhaps the default interactions are implemented only as the last step in the axes creation sequence, after the user-specified AxesCreationFcn callback has already executed.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jeremiah		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-485598</link>

		<dc:creator><![CDATA[Jeremiah]]></dc:creator>
		<pubDate>Fri, 05 Jul 2019 15:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-485598</guid>

					<description><![CDATA[I tried to run your function during a figure(...) creation and it removes the axes toolbar but it does not change the interactions. Those only work once the axes is already created and then I change them. But I&#039;d like to have this automated, even in the startup.m script. Can you think of why the toolbar portion works but the interactions don&#039;t while used as a defaultAxesCreationFcn ?]]></description>
			<content:encoded><![CDATA[<p>I tried to run your function during a figure(&#8230;) creation and it removes the axes toolbar but it does not change the interactions. Those only work once the axes is already created and then I change them. But I&#8217;d like to have this automated, even in the startup.m script. Can you think of why the toolbar portion works but the interactions don&#8217;t while used as a defaultAxesCreationFcn ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Doug		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-478997</link>

		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Fri, 24 May 2019 12:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-478997</guid>

					<description><![CDATA[I&#039;d love to be able to customize the appearance of the axes toolbar rather than replacing it. Frustratingly my attempts have led to not very much success, I can move it from it&#039;s current location fairly easily and resize it once it&#039;s visible, but the size is reset every time the menu appears. I wonder if anyone else has had any success?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d love to be able to customize the appearance of the axes toolbar rather than replacing it. Frustratingly my attempts have led to not very much success, I can move it from it&#8217;s current location fairly easily and resize it once it&#8217;s visible, but the size is reset every time the menu appears. I wonder if anyone else has had any success?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-478448</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 21 May 2019 08:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-478448</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-478442&quot;&gt;Andreas&lt;/a&gt;.

@Andreas - as far as I could see there is no change in R2019a.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-478442">Andreas</a>.</p>
<p>@Andreas &#8211; as far as I could see there is no change in R2019a.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andreas		</title>
		<link>https://undocumentedmatlab.com/articles/improving-graphics-interactivity#comment-478442</link>

		<dc:creator><![CDATA[Andreas]]></dc:creator>
		<pubDate>Tue, 21 May 2019 07:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=8723#comment-478442</guid>

					<description><![CDATA[Great article.

Do you know if something changed with R2019a? Is MathWorks working on this new &quot;feature&quot; and improving it?]]></description>
			<content:encoded><![CDATA[<p>Great article.</p>
<p>Do you know if something changed with R2019a? Is MathWorks working on this new &#8220;feature&#8221; and improving it?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
