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 14:37:53 +0000 (UTC)
Organization: Milwaukee School of Engineering
Lines: 20
Message-ID: <fac901$gph$1@fred.mathworks.com>
References: <faam18$str$1@fred.mathworks.com> <faasds$7tc$1@fred.mathworks.com> <fac7nf$r4u$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 1187620673 17201 172.30.248.37 (20 Aug 2007 14:37:53 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Aug 2007 14:37:53 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 475291
Xref: news.mathworks.com comp.soft-sys.matlab:424598



"G.A.M. " <x0zero@gmail.com> wrote in message
<fac7nf$r4u$1@fred.mathworks.com>...
> "Dan Haeg" <haegd@msoe.edu> wrote in message 
> > > 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.
> > > 
> 
> > 
> > A subplot can have a ButtonDownFcn
> 
> What is the best way to obtain the value of the current
> subplot's UserData property (or any other property) from
> within the function assigned to ButtonDownFcn? The current
> subplot should be the one being clicked, right? Or is it a
> bit more nebulous than that?

gca is the current subplot as you would expect.

get(gca,'userdata')