<?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: Advanced MATLAB: Subplots</title>
	<atom:link href="http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Mon, 13 May 2013 13:30:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3111</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 15 Jun 2012 15:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3111</guid>
		<description><![CDATA[When you put down text objects, they have a &#039;units&#039; field.  Turn the units to &#039;normalized&#039;.  Then the text is relative to axes, location goes from [0 1].

Doug]]></description>
		<content:encoded><![CDATA[<p>When you put down text objects, they have a &#8216;units&#8217; field.  Turn the units to &#8216;normalized&#8217;.  Then the text is relative to axes, location goes from [0 1].</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Inquisitor X</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3108</link>
		<dc:creator>Inquisitor X</dc:creator>
		<pubDate>Thu, 14 Jun 2012 02:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3108</guid>
		<description><![CDATA[Hi Doug, is there a generalised way for numbering subplots (ie a(i) a(ii) a(iii), etc.)? I tried labelling a set of 4 by 3 subplots on the upper left corner of each graph. I used the text function and the maximum y-limit to work out the position of the label, ie.



h1 = subplot(4,3,1); plot(x,y);
lim_y12 = get(h1, &#039;YLim&#039;);

text(0, lim_y1(2)-1, [&#039; &#039; char(1+96) &#039;(i)&#039;];,...
        &#039;HorizontalAlignment&#039;,&#039;left&#039;,...
        &#039;VerticalAlignment&#039;,&#039;top&#039;,&#039;interpreter&#039;,&#039;latex&#039;,&#039;FontSize&#039;,myfontsize);


By all means, it worked out okay, but I&#039;m not completely satisfied with the method. The scales from each column are varied from one and another by different order of magnitudes and so the labels would end up scattering about along the horizontal axis (mildly). Is there a way to set the position of the labelled text relative to the graph area instead of using the plot coordinates? I simply want number each graph at exactly the same place.  Any helps and suggestions would be greatly appreciated.

Best wishes,]]></description>
		<content:encoded><![CDATA[<p>Hi Doug, is there a generalised way for numbering subplots (ie a(i) a(ii) a(iii), etc.)? I tried labelling a set of 4 by 3 subplots on the upper left corner of each graph. I used the text function and the maximum y-limit to work out the position of the label, ie.</p>
<p>h1 = subplot(4,3,1); plot(x,y);<br />
lim_y12 = get(h1, &#8216;YLim&#8217;);</p>
<p>text(0, lim_y1(2)-1, [' ' char(1+96) '(i)'];,&#8230;<br />
        &#8216;HorizontalAlignment&#8217;,'left&#8217;,&#8230;<br />
        &#8216;VerticalAlignment&#8217;,'top&#8217;,'interpreter&#8217;,'latex&#8217;,'FontSize&#8217;,myfontsize);</p>
<p>By all means, it worked out okay, but I&#8217;m not completely satisfied with the method. The scales from each column are varied from one and another by different order of magnitudes and so the labels would end up scattering about along the horizontal axis (mildly). Is there a way to set the position of the labelled text relative to the graph area instead of using the plot coordinates? I simply want number each graph at exactly the same place.  Any helps and suggestions would be greatly appreciated.</p>
<p>Best wishes,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3086</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 29 May 2012 18:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3086</guid>
		<description><![CDATA[@Mindy,

Axes do not have YData, lines do.  To get the Ydata, you need the handles of the children of the axes (the lines).  Do you mean the YLimits of the axes?

Doug]]></description>
		<content:encoded><![CDATA[<p>@Mindy,</p>
<p>Axes do not have YData, lines do.  To get the Ydata, you need the handles of the children of the axes (the lines).  Do you mean the YLimits of the axes?</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mindy</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3079</link>
		<dc:creator>Mindy</dc:creator>
		<pubDate>Thu, 24 May 2012 00:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3079</guid>
		<description><![CDATA[Hi Doug, I saw couple of your posts on Internet, wondering if you can help me.

How do I get YData in one subplot?  When I do get(gca,&#039;children&#039;), it only returns one value although there are several subplots.
when i do get(get(gca,&#039;Children&#039;),&#039;ydata&#039;); it doesn&#039;t seem like ydata of all subplots, i don&#039;t know how to read the return of this line.  
I also have tried h(1) = subplot(....), then get(h(1),&#039;YData&#039;)), didn&#039;t seem working either.
Anyway, how do I get Ydata of a subplot.

Also, if I set all subplots in a figure with buttondownfunction, what&#039;s the best way to do this? currently i have a for loop as for i = 1:length(#of subplot)
set(...buttondownfunction....)
end.  This is not a good way to do it at all, is it? what is the faster way to do this?

One more question is that is there a way to add uicontrol,like a text box, within a subplot(rather than the entire figure? If so, how should I do it.  I wasn&#039;t able to do it for individual subplot.

Thank you]]></description>
		<content:encoded><![CDATA[<p>Hi Doug, I saw couple of your posts on Internet, wondering if you can help me.</p>
<p>How do I get YData in one subplot?  When I do get(gca,&#8217;children&#8217;), it only returns one value although there are several subplots.<br />
when i do get(get(gca,&#8217;Children&#8217;),&#8217;ydata&#8217;); it doesn&#8217;t seem like ydata of all subplots, i don&#8217;t know how to read the return of this line.<br />
I also have tried h(1) = subplot(&#8230;.), then get(h(1),&#8217;YData&#8217;)), didn&#8217;t seem working either.<br />
Anyway, how do I get Ydata of a subplot.</p>
<p>Also, if I set all subplots in a figure with buttondownfunction, what&#8217;s the best way to do this? currently i have a for loop as for i = 1:length(#of subplot)<br />
set(&#8230;buttondownfunction&#8230;.)<br />
end.  This is not a good way to do it at all, is it? what is the faster way to do this?</p>
<p>One more question is that is there a way to add uicontrol,like a text box, within a subplot(rather than the entire figure? If so, how should I do it.  I wasn&#8217;t able to do it for individual subplot.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wrongname</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3037</link>
		<dc:creator>wrongname</dc:creator>
		<pubDate>Sat, 31 Mar 2012 11:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-3037</guid>
		<description><![CDATA[&quot;subplot(m,n,p)&quot;
the subplot function is divide the current window into m*n parts. here m is the number of rows and the n is number of column. p is the position where we will plot the graph.
if there graph is already exists the blow command is delete the pane and create a new pane of graph.
&quot;subplot(m,n,p,&#039;replace&#039;)]]></description>
		<content:encoded><![CDATA[<p>&#8220;subplot(m,n,p)&#8221;<br />
the subplot function is divide the current window into m*n parts. here m is the number of rows and the n is number of column. p is the position where we will plot the graph.<br />
if there graph is already exists the blow command is delete the pane and create a new pane of graph.<br />
&#8220;subplot(m,n,p,&#8217;replace&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-852</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 12 Aug 2008 15:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-852</guid>
		<description><![CDATA[jitendra,

I am not sure I understand your question.  Please contact support for help.

Doug]]></description>
		<content:encoded><![CDATA[<p>jitendra,</p>
<p>I am not sure I understand your question.  Please contact support for help.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jitendra</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-851</link>
		<dc:creator>jitendra</dc:creator>
		<pubDate>Tue, 12 Aug 2008 10:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-851</guid>
		<description><![CDATA[Hai Doug

     I need your help in plotting a time-series data set and in the form of sub-plots.My domain size is 362 X 181 and like that there are 12 data sets.I need to plot all these 12 data sets of same dimension and animate later.
I need to make a script so that,it is operational.

  I strucked from last four days to do this.
Thanking you in advance

regards
jitendra]]></description>
		<content:encoded><![CDATA[<p>Hai Doug</p>
<p>     I need your help in plotting a time-series data set and in the form of sub-plots.My domain size is 362 X 181 and like that there are 12 data sets.I need to plot all these 12 data sets of same dimension and animate later.<br />
I need to make a script so that,it is operational.</p>
<p>  I strucked from last four days to do this.<br />
Thanking you in advance</p>
<p>regards<br />
jitendra</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-850</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Tue, 29 Jul 2008 10:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-850</guid>
		<description><![CDATA[Fikri, see CLA.]]></description>
		<content:encoded><![CDATA[<p>Fikri, see CLA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fikri</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-849</link>
		<dc:creator>Fikri</dc:creator>
		<pubDate>Tue, 29 Jul 2008 03:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-849</guid>
		<description><![CDATA[Hi Doug,

got a simple question here, I&#039;m making an interface for an image compression project. I needed to generate several subplots for the histogram, but here lies the problem. After generating all the subplots (which I put inside a panel, not axes) I simply can&#039;t remove/clear/reset those subplots, which I need to do to make my &#039;Clear&#039; pushbutton works as it is assigned to do.

a quick reply would be nice..

regards

Fikri]]></description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>got a simple question here, I&#8217;m making an interface for an image compression project. I needed to generate several subplots for the histogram, but here lies the problem. After generating all the subplots (which I put inside a panel, not axes) I simply can&#8217;t remove/clear/reset those subplots, which I need to do to make my &#8216;Clear&#8217; pushbutton works as it is assigned to do.</p>
<p>a quick reply would be nice..</p>
<p>regards</p>
<p>Fikri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitrij</title>
		<link>http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-844</link>
		<dc:creator>Dimitrij</dc:creator>
		<pubDate>Fri, 06 Jun 2008 17:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/03/03/advanced-matlab-subplots/#comment-844</guid>
		<description><![CDATA[thanks for the hint: I finally understood the &quot;position&quot; command applied to subplot, and that dimensions are given in percentage of figure width and height.]]></description>
		<content:encoded><![CDATA[<p>thanks for the hint: I finally understood the &#8220;position&#8221; command applied to subplot, and that dimensions are given in percentage of figure width and height.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
