<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238464</link>
    <title>MATLAB Central Newsreader - Different types of plots in the same uipanel</title>
    <description>Feed for thread: Different types of plots in the same 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>Fri, 31 Oct 2008 04:23:01 -0400</pubDate>
      <title>Different types of plots in the same uipanel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238464#608243</link>
      <author>William </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I am going between a single plot and multiple subplots plots in the same uipanel of a GUI I am creating.  A value in a popupmenu determines the type of plot to graph.  I've created the GUI using 'guide' and I have placed an axes in the desired uipanel.&lt;br&gt;
&lt;br&gt;
The problem is, when I switch between the single plot and the subplots, it seems that I am clobbering my axes object.  If I display all of the handles in the command window, the axes handle is displayed until I select to option to plot the subplots.  If I go back to the single plot, I receive an error that says 'Invalid Handle Object' and the axes handle disappears from the list of handles.&lt;br&gt;
&lt;br&gt;
Does the function subplot clobber the current axes object?  Does anyone know why my axes handle is disappearing when the function subplot is called?&lt;br&gt;
&lt;br&gt;
Thanks for your help!&lt;br&gt;
&lt;br&gt;
Bill King </description>
    </item>
    <item>
      <pubDate>Fri, 31 Oct 2008 06:46:46 -0400</pubDate>
      <title>Re: Different types of plots in the same uipanel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238464#608260</link>
      <author>Walter Roberson</author>
      <description>William wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Does the function subplot clobber the current axes object? &lt;br&gt;
&lt;br&gt;
Yes, just as it is documented to do.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; help subplot&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If a SUBPLOT specification causes a new axis to overlap an&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;existing axis, the existing axis is deleted - unless the position&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;of the new and existing axis are identical.  For example,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;the statement SUBPLOT(1,2,1) deletes all existing axes overlapping&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;the left side of the Figure window and creates a new axis on that&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;side - unless there is an axes there with a position that exactly&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matches the position of the new axes (and 'replace' was not specified),&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;in which case all other overlapping axes will be deleted and the &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;matching axes will become the current axes.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
.signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?</description>
    </item>
    <item>
      <pubDate>Mon, 03 Nov 2008 06:03:02 -0500</pubDate>
      <title>Re: Different types of plots in the same uipanel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238464#608658</link>
      <author>William </author>
      <description>Hi Walter,&lt;br&gt;
&lt;br&gt;
Thank you for the reply!  The function subplot seems to be getting in the way with what I am looking to do.  Is there a better way of doing this?  I could possibly create two different axes over one another.  If I  wanted to plot the single bar plot, I could display it on axes1 and make axes2 invisible.  If I wanted to plot multiple pdf plots, I could call subplot and display it on axes2 and make axes1 invisible.  &lt;br&gt;
&lt;br&gt;
This seems problematic, because when I call subplot, it is still going to erase axes2, correct?  Is there a way to do this so I don't loose my axes and can reuse it over and over with each different type of plot?&lt;br&gt;
&lt;br&gt;
Thanks for your help!!&lt;br&gt;
&lt;br&gt;
V/R&lt;br&gt;
Bill King</description>
    </item>
  </channel>
</rss>

