<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155222</link>
    <title>MATLAB Central Newsreader - Will subplot work for uipanel?</title>
    <description>Feed for thread: Will subplot work for uipanel?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 27 Aug 2007 19:50:06 -0400</pubDate>
      <title>Will subplot work for uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155222#389588</link>
      <author>G.A.M. </author>
      <description>I want to create multiple plots inside a specific area of a&lt;br&gt;
figure. I am attempting to do that by using a uipanel and&lt;br&gt;
subplot. However, in these newsgroups I saw a message that&lt;br&gt;
someone was having trouble getting subplot to work with a&lt;br&gt;
uipanel. Is it possible to use subplot on a uipanel?&lt;br&gt;
&lt;br&gt;
If not, what is a better (easier) way to create a variable&lt;br&gt;
number of plots in a certain area of a figure?&lt;br&gt;
&lt;br&gt;
Maybe I could use docking somehow... this is all new to me,&lt;br&gt;
so any suggestions are appreciated. Thanks</description>
    </item>
    <item>
      <pubDate>Mon, 27 Aug 2007 20:28:15 -0400</pubDate>
      <title>Re: Will subplot work for uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155222#389594</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:fav9te$p6a$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I want to create multiple plots inside a specific area of a&lt;br&gt;
&amp;gt; figure. I am attempting to do that by using a uipanel and&lt;br&gt;
&amp;gt; subplot. However, in these newsgroups I saw a message that&lt;br&gt;
&amp;gt; someone was having trouble getting subplot to work with a&lt;br&gt;
&amp;gt; uipanel. Is it possible to use subplot on a uipanel?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If not, what is a better (easier) way to create a variable&lt;br&gt;
&amp;gt; number of plots in a certain area of a figure?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Maybe I could use docking somehow... this is all new to me,&lt;br&gt;
&amp;gt; so any suggestions are appreciated. Thanks&lt;br&gt;
&lt;br&gt;
Using the first two lines of the example in the UIPANEL reference page:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/uipanel.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/uipanel.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
h = figure;&lt;br&gt;
hp = uipanel('Title','Main Panel','FontSize',12,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'BackgroundColor','white',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Position',[.25 .1 .67 .67]);&lt;br&gt;
&lt;br&gt;
sp1 = subplot(2, 2, 1, 'Parent', hp);&lt;br&gt;
plot(1:10);&lt;br&gt;
sp4 = subplot(2, 2, 4, 'Parent', hp);&lt;br&gt;
surf(peaks);&lt;br&gt;
&lt;br&gt;
I tested this in MATLAB 7.4 (R2007a) and it worked fine.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Mon, 27 Aug 2007 20:42:50 -0400</pubDate>
      <title>Re: Will subplot work for uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155222#389596</link>
      <author>G.A.M. </author>
      <description>Thank you. This works for me too. Now I just wish I could&lt;br&gt;
find that earlier incorrect message I read on this newsgroup&lt;br&gt;
to add a correction to it...&lt;br&gt;
&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;favc4v$p9b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:fav9te$p6a$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I want to create multiple plots inside a specific area of a&lt;br&gt;
&amp;gt; &amp;gt; figure. I am attempting to do that by using a uipanel and&lt;br&gt;
&amp;gt; &amp;gt; subplot. However, in these newsgroups I saw a message that&lt;br&gt;
&amp;gt; &amp;gt; someone was having trouble getting subplot to work with a&lt;br&gt;
&amp;gt; &amp;gt; uipanel. Is it possible to use subplot on a uipanel?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; If not, what is a better (easier) way to create a variable&lt;br&gt;
&amp;gt; &amp;gt; number of plots in a certain area of a figure?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Maybe I could use docking somehow... this is all new to me,&lt;br&gt;
&amp;gt; &amp;gt; so any suggestions are appreciated. Thanks&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Using the first two lines of the example in the UIPANEL&lt;br&gt;
reference page:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/uipanel.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/uipanel.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; h = figure;&lt;br&gt;
&amp;gt; hp = uipanel('Title','Main Panel','FontSize',12,...&lt;br&gt;
&amp;gt;              'BackgroundColor','white',...&lt;br&gt;
&amp;gt;              'Position',[.25 .1 .67 .67]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; sp1 = subplot(2, 2, 1, 'Parent', hp);&lt;br&gt;
&amp;gt; plot(1:10);&lt;br&gt;
&amp;gt; sp4 = subplot(2, 2, 4, 'Parent', hp);&lt;br&gt;
&amp;gt; surf(peaks);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tested this in MATLAB 7.4 (R2007a) and it worked fine.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 27 Oct 2010 08:04:05 -0400</pubDate>
      <title>Re: Will subplot work for uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155222#790949</link>
      <author>Karen </author>
      <description>&quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &amp;lt;favd0a$amh$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thank you. This works for me too. Now I just wish I could&lt;br&gt;
&amp;gt; find that earlier incorrect message I read on this newsgroup&lt;br&gt;
&amp;gt; to add a correction to it...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;favc4v$p9b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &quot;G.A.M. &quot; &amp;lt;x0zero@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; news:fav9te$p6a$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;I want to create multiple plots inside a specific area of a&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; figure. I am attempting to do that by using a uipanel and&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; subplot. However, in these newsgroups I saw a message that&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; someone was having trouble getting subplot to work with a&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; uipanel. Is it possible to use subplot on a uipanel?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; If not, what is a better (easier) way to create a variable&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; number of plots in a certain area of a figure?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Maybe I could use docking somehow... this is all new to me,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; so any suggestions are appreciated. Thanks&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Using the first two lines of the example in the UIPANEL&lt;br&gt;
&amp;gt; reference page:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/uipanel.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/uipanel.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; h = figure;&lt;br&gt;
&amp;gt; &amp;gt; hp = uipanel('Title','Main Panel','FontSize',12,...&lt;br&gt;
&amp;gt; &amp;gt;              'BackgroundColor','white',...&lt;br&gt;
&amp;gt; &amp;gt;              'Position',[.25 .1 .67 .67]);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; sp1 = subplot(2, 2, 1, 'Parent', hp);&lt;br&gt;
&amp;gt; &amp;gt; plot(1:10);&lt;br&gt;
&amp;gt; &amp;gt; sp4 = subplot(2, 2, 4, 'Parent', hp);&lt;br&gt;
&amp;gt; &amp;gt; surf(peaks);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I tested this in MATLAB 7.4 (R2007a) and it worked fine.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt; Steve Lord&lt;br&gt;
&amp;gt; &amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I had wrote this to test the uipanel, but it doesn't work.&lt;br&gt;
&lt;br&gt;
function pushbutton3_Callback(hObject, eventdata, handles)&lt;br&gt;
&lt;br&gt;
I = imread('C:\Users\ABC\Desktop\Stroke\1A','jpg');&lt;br&gt;
h = subplot(m,n,p,'Parent','handles.uipanel1');&lt;br&gt;
imshow(I);&lt;br&gt;
May I know what's the problem for this coding?&lt;br&gt;
&lt;br&gt;
Thank you in advance.&lt;br&gt;
Karen</description>
    </item>
    <item>
      <pubDate>Wed, 27 Oct 2010 14:10:52 -0400</pubDate>
      <title>Re: Will subplot work for uipanel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/155222#791042</link>
      <author>Steven_Lord</author>
      <description>&lt;br&gt;
&lt;br&gt;
&quot;Karen &quot; &amp;lt;shinjye88@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:ia8mdl$gb$1@fred.mathworks.com...&lt;br&gt;
&lt;br&gt;
Rather than resurrecting a thread that's over three years old, please start &lt;br&gt;
a new thread for a new issue.&lt;br&gt;
&lt;br&gt;
*snip*&lt;br&gt;
&lt;br&gt;
&amp;gt; I had wrote this to test the uipanel, but it doesn't work.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; function pushbutton3_Callback(hObject, eventdata, handles)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I = imread('C:\Users\ABC\Desktop\Stroke\1A','jpg');&lt;br&gt;
&amp;gt; h = subplot(m,n,p,'Parent','handles.uipanel1');&lt;br&gt;
&lt;br&gt;
Get rid of the quotes around 'handles.uipanel1'.  You want to pass the &lt;br&gt;
actual handle into SUBPLOT, not a string containing the name of the struct &lt;br&gt;
field containing the handle.&lt;br&gt;
&lt;br&gt;
&amp;gt; imshow(I);&lt;br&gt;
&amp;gt; May I know what's the problem for this coding?&lt;br&gt;
&lt;br&gt;
No, because you haven't told us what &quot;it doesn't work&quot; means.  Does it &lt;br&gt;
error?  Warn?  Display the image incorrectly?  Without that information (and &lt;br&gt;
the FULL EXACT text of the error/warning message if one appears) there's NO &lt;br&gt;
WAY anyone can offer any but the most general of suggestions.&lt;br&gt;
&lt;br&gt;
Why don't you just put an axes (or multiple axes) on the uipanel in GUIDE &lt;br&gt;
itself?&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt;&lt;br&gt;
To contact Technical Support use the Contact Us link on &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com&quot;&gt;http://www.mathworks.com&lt;/a&gt; </description>
    </item>
  </channel>
</rss>

