Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Can a uicontrol contain a plot?
Date: Mon, 20 Aug 2007 00:18:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <faamjp$5vu$1@fred.mathworks.com>
References: <faam18$str$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187569081 6142 172.30.248.38 (20 Aug 2007 00:18:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Aug 2007 00:18:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1030060
Xref: news.mathworks.com comp.soft-sys.matlab:424521



I'm definitely going to need some help with this. So far I
have learned:

"An object of class axes, can not be a child of class
uicontrol."

Any suggestions are appreciated.

"G.A.M. " <x0zero@gmail.com> wrote in message
<faam18$str$1@fred.mathworks.com>...
> I would like to make a series of small plots where any
> subplot, when clicked with the mouse, will open into a full
> sized plot with extra details.
> 
> I have to do it all programmatically (in m files).
> 
> Can I display a plot in a uicontrol (a push button)?
> 
> If so, maybe I can add N uicontrols on a panel and display a
> plot on each uicontrol and assign a function to
> ButtonDownFcn that will grab some values from the plot's
> UserData and generate a new full sized plot (with more
details).
> 
> If this will work, can anyone give me some tips or examples
> on how to implement it? It would be cool if there is a way
> to add the uicontrols similar to the subplot method (i.e.,
> by using m, n, p). 
> Thanks.