Path: news.mathworks.com!not-for-mail
From: "William" <w_king10@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Different types of plots in the same uipanel
Date: Fri, 31 Oct 2008 04:23:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gee175$b7f$1@fred.mathworks.com>
Reply-To: "William" <w_king10@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225426981 11503 172.30.248.37 (31 Oct 2008 04:23:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 31 Oct 2008 04:23:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 930703
Xref: news.mathworks.com comp.soft-sys.matlab:498164


Hi,

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.

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.

Does the function subplot clobber the current axes object?  Does anyone know why my axes handle is disappearing when the function subplot is called?

Thanks for your help!

Bill King