Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Can a uicontrol contain a plot?
Date: Mon, 20 Aug 2007 00:08:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <faam18$str$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1187568489 29627 172.30.248.37 (20 Aug 2007 00:08:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Aug 2007 00:08:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1030060
Xref: news.mathworks.com comp.soft-sys.matlab:424519



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.