Path: news.mathworks.com!not-for-mail
From: "Dan Haeg" <haegd@msoe.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Can a uicontrol contain a plot?
Date: Mon, 20 Aug 2007 01:57:16 +0000 (UTC)
Organization: Milwaukee School of Engineering
Lines: 23
Message-ID: <faasds$7tc$1@fred.mathworks.com>
References: <faam18$str$1@fred.mathworks.com>
Reply-To: "Dan Haeg" <haegd@msoe.edu>
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 1187575036 8108 172.30.248.37 (20 Aug 2007 01:57:16 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Aug 2007 01:57:16 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 475291
Xref: news.mathworks.com comp.soft-sys.matlab:424525



"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.

A subplot can have a ButtonDownFcn