<?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: Waterloo graphics examples	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/waterloo-graphics-examples/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=waterloo-graphics-examples</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 26 Dec 2017 21:31:29 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Wilber		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-417949</link>

		<dc:creator><![CDATA[Wilber]]></dc:creator>
		<pubDate>Tue, 26 Dec 2017 21:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-417949</guid>

					<description><![CDATA[Yair

Am I doing something wrong? I can&#039;t correct the problem. Can you help me please.

This is the code:
&lt;pre lang=&quot;matlab&quot;&gt;
f = GXFigure();
set(f.Parent, &#039;Units&#039;, &#039;normalized&#039;, &#039;Position&#039;, [.2 .2 .6 .6], &#039;Name&#039;, &#039;TestQuiver&#039;);
[X,Y] = meshgrid(-2:.2:2);
Z = X.*exp(-X.^2 - Y.^2);
[DX,DY] = gradient(Z,.2,.2);
ax = subplot(gxgcf,1,1,1);
q1 = quiver(ax,X,Y,DX,DY, 0.9);

Attempt to reference field of non-structure array.

Error in subplot (line 43)
set(0, &#039;CurrentFigure&#039;, target.Parent);%figure(target.Parent);%

Error in subplot (line 76)
    ah=subplot(varargin{1:2}, varargin{3});
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Yair</p>
<p>Am I doing something wrong? I can&#8217;t correct the problem. Can you help me please.</p>
<p>This is the code:</p>
<pre lang="matlab">
f = GXFigure();
set(f.Parent, 'Units', 'normalized', 'Position', [.2 .2 .6 .6], 'Name', 'TestQuiver');
[X,Y] = meshgrid(-2:.2:2);
Z = X.*exp(-X.^2 - Y.^2);
[DX,DY] = gradient(Z,.2,.2);
ax = subplot(gxgcf,1,1,1);
q1 = quiver(ax,X,Y,DX,DY, 0.9);

Attempt to reference field of non-structure array.

Error in subplot (line 43)
set(0, 'CurrentFigure', target.Parent);%figure(target.Parent);%

Error in subplot (line 76)
    ah=subplot(varargin{1:2}, varargin{3});
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shannon Chow		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-335525</link>

		<dc:creator><![CDATA[Shannon Chow]]></dc:creator>
		<pubDate>Wed, 29 Oct 2014 11:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-335525</guid>

					<description><![CDATA[How to enable the &quot;dock&quot; and &quot;close&quot; button in the GTabedPane?]]></description>
			<content:encoded><![CDATA[<p>How to enable the &#8220;dock&#8221; and &#8220;close&#8221; button in the GTabedPane?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ben		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-239579</link>

		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Wed, 14 Aug 2013 23:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-239579</guid>

					<description><![CDATA[Thanks for the beautiful examples.
I&#039;ve installed it and managed to get the examples work but I couldn&#039;t annotate the figure (say with an arrow). This is what I have tried:

&lt;pre lang=&quot;matlab&quot;&gt;
f = GXFigure();
x = -5:0.1:5;
gr1 = gxgca();
a1 = line(gr1, x, cos(x), &#039;LineSpec&#039;,&#039;-ob&#039;);
b1 = line(gr1, x, sin(x), &#039;LineSpec&#039;,&#039;-sg&#039;);
annotation(gcf,&#039;arrow&#039;,[0.6 0.5],[0.2 0.4],&#039;HeadLength&#039;,4,&#039;LineWidth&#039;,5);
gr1.getObject().getView().autoScale();
&lt;/pre&gt;

Nothing appears... 

Can you please show an example of how to annotate with an arrow?]]></description>
			<content:encoded><![CDATA[<p>Thanks for the beautiful examples.<br />
I&#8217;ve installed it and managed to get the examples work but I couldn&#8217;t annotate the figure (say with an arrow). This is what I have tried:</p>
<pre lang="matlab">
f = GXFigure();
x = -5:0.1:5;
gr1 = gxgca();
a1 = line(gr1, x, cos(x), 'LineSpec','-ob');
b1 = line(gr1, x, sin(x), 'LineSpec','-sg');
annotation(gcf,'arrow',[0.6 0.5],[0.2 0.4],'HeadLength',4,'LineWidth',5);
gr1.getObject().getView().autoScale();
</pre>
<p>Nothing appears&#8230; </p>
<p>Can you please show an example of how to annotate with an arrow?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Waterloo graphics beta &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-220145</link>

		<dc:creator><![CDATA[Waterloo graphics beta &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Tue, 02 Jul 2013 17:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-220145</guid>

					<description><![CDATA[[...] ended my last guest article with an example of work-in-progress: filled contours. The beta release now fully supports [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] ended my last guest article with an example of work-in-progress: filled contours. The beta release now fully supports [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yannick		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-163476</link>

		<dc:creator><![CDATA[Yannick]]></dc:creator>
		<pubDate>Tue, 26 Feb 2013 16:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-163476</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-162799&quot;&gt;Yannick&lt;/a&gt;.

Can&#039;t wait for Aplha 3 then !

Thanks again for that awesome piece of work.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-162799">Yannick</a>.</p>
<p>Can&#8217;t wait for Aplha 3 then !</p>
<p>Thanks again for that awesome piece of work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Lidierth		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-163415</link>

		<dc:creator><![CDATA[Malcolm Lidierth]]></dc:creator>
		<pubDate>Tue, 26 Feb 2013 13:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-163415</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-162799&quot;&gt;Yannick&lt;/a&gt;.

Yannick
Not yet I am afraid. I hope to post the Alpha3 version soon. That has quite a few new elements: mouse selectable ROIs, area plots, bar charts etc. many from suggestions arising from this blog.
The ROIs (and also a color bar) are there as draggable insets in Alpha3 and I plan to implement a legend that way too.
Regards
Malcolm]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-162799">Yannick</a>.</p>
<p>Yannick<br />
Not yet I am afraid. I hope to post the Alpha3 version soon. That has quite a few new elements: mouse selectable ROIs, area plots, bar charts etc. many from suggestions arising from this blog.<br />
The ROIs (and also a color bar) are there as draggable insets in Alpha3 and I plan to implement a legend that way too.<br />
Regards<br />
Malcolm</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yannick		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-162799</link>

		<dc:creator><![CDATA[Yannick]]></dc:creator>
		<pubDate>Mon, 25 Feb 2013 15:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-162799</guid>

					<description><![CDATA[Awesome work! In no time I was able to implement this into my GUI&#039;s and the plots look so much better.

One question to the more experienced users, is there an easy way to produce a legend with the line and marker properties such as the default in Matlab ?

Thanks!]]></description>
			<content:encoded><![CDATA[<p>Awesome work! In no time I was able to implement this into my GUI&#8217;s and the plots look so much better.</p>
<p>One question to the more experienced users, is there an easy way to produce a legend with the line and marker properties such as the default in Matlab ?</p>
<p>Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Lidierth		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-148041</link>

		<dc:creator><![CDATA[Malcolm Lidierth]]></dc:creator>
		<pubDate>Mon, 28 Jan 2013 10:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-148041</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146149&quot;&gt;Peter&lt;/a&gt;.

PS

&lt;pre lang=&quot;matlab&quot;&gt;  
annot.setPreferredSize(java.awt.Dimension(19,15));
&lt;/pre&gt;

might look better as the Swing layout has only 1-pixel resolution.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146149">Peter</a>.</p>
<p>PS</p>
<pre lang="matlab">  
annot.setPreferredSize(java.awt.Dimension(19,15));
</pre>
<p>might look better as the Swing layout has only 1-pixel resolution.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Lidierth		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-148036</link>

		<dc:creator><![CDATA[Malcolm Lidierth]]></dc:creator>
		<pubDate>Mon, 28 Jan 2013 10:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-148036</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146149&quot;&gt;Peter&lt;/a&gt;.

@Peter
I forgot - annotations use graphics not swing so that option is not available. I&#039;ll need to add some code, But here is a solution using JButtons:

&lt;pre lang=&quot;matlab&quot;&gt; 
gr=ax.getObject().getView();
for i=1:size(X,1) 
    for j=1:5
        annot=javaObjectEDT(javax.swing.JButton(num2str(y(i,j),&#039;%0.2f&#039;)));
        annot.setPreferredSize(java.awt.Dimension(20,15));
        annot.setFont(java.awt.Font(&#039;Arial&#039;,java.awt.Font.ITALIC, 8));
        gr.add(annot,i,j,javax.swing.SwingConstants.CENTER,javax.swing.SwingConstants.CENTER);     
    end
end
&lt;/pre&gt;

Add callbacks to the buttons directly.

To replace (rather than supplement) the default mouse + mouse motion listeners with MATLAB callbacks, you will need to explicitly remove the existing Java listeners.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146149">Peter</a>.</p>
<p>@Peter<br />
I forgot &#8211; annotations use graphics not swing so that option is not available. I&#8217;ll need to add some code, But here is a solution using JButtons:</p>
<pre lang="matlab"> 
gr=ax.getObject().getView();
for i=1:size(X,1) 
    for j=1:5
        annot=javaObjectEDT(javax.swing.JButton(num2str(y(i,j),'%0.2f')));
        annot.setPreferredSize(java.awt.Dimension(20,15));
        annot.setFont(java.awt.Font('Arial',java.awt.Font.ITALIC, 8));
        gr.add(annot,i,j,javax.swing.SwingConstants.CENTER,javax.swing.SwingConstants.CENTER);     
    end
end
</pre>
<p>Add callbacks to the buttons directly.</p>
<p>To replace (rather than supplement) the default mouse + mouse motion listeners with MATLAB callbacks, you will need to explicitly remove the existing Java listeners.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Lidierth		</title>
		<link>https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146561</link>

		<dc:creator><![CDATA[Malcolm Lidierth]]></dc:creator>
		<pubDate>Fri, 25 Jan 2013 13:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3374#comment-146561</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146149&quot;&gt;Peter&lt;/a&gt;.

Peter
The colors fonts etc are all editable properties of the underlying java object.
For alignment, I need to add some new methods but the existing
&lt;code&gt;add(component, x, y, alignX, alignY)&lt;/code&gt;
method in the graph container should be OK (the component will not be added to the list of annotations though so I&#039;ll improve this).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/waterloo-graphics-examples#comment-146149">Peter</a>.</p>
<p>Peter<br />
The colors fonts etc are all editable properties of the underlying java object.<br />
For alignment, I need to add some new methods but the existing<br />
<code>add(component, x, y, alignX, alignY)</code><br />
method in the graph container should be OK (the component will not be added to the list of annotations though so I&#8217;ll improve this).</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
