Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Clickable subplots
Date: Tue, 21 Aug 2007 00:20:26 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 37
Message-ID: <fadb49$obo$1@fred.mathworks.com>
References: <faaglg$4k6$1@fred.mathworks.com> <facc2p$8ve$1@fred.mathworks.com> <facgjt$6kf$1@fred.mathworks.com> <facio3$c3i$1@fred.mathworks.com> <fackar$51d$1@fred.mathworks.com> <facl4n$h1r$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 1187655626 24952 172.30.248.37 (21 Aug 2007 00:20:26 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 21 Aug 2007 00:20:26 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1030060
Xref: news.mathworks.com comp.soft-sys.matlab:424715



Using the tips suggested in this thread I got everything
working. I now have clickable subplots. Thank you.


"Steven Lord" <slord@mathworks.com> wrote in message
<facl4n$h1r$1@fred.mathworks.com>...
> 
> "G.A.M. " <x0zero@gmail.com> wrote in message 
> news:fackar$51d$1@fred.mathworks.com...
> 
> *snip*
> 
> > I plot into all of them the same. However, it looks as if
> > the issue is related to exactly where I click with the
> > mouse. If I happen to click on a line series (i.e., the plot
> > object itself), the callback fcn is not called. However, if
> > I click on other areas (the background, the axes, etc.), the
> > callback is called. So it looks to me like the callback
> > associated with the subplot (the axes) does not get called
> > if the mouse click happens to land on the plot itself.
> >
> > What is the solution? Attach the same callback to the plot
> > and the subplot? I'm guessing there is a more elegant way...
> 
> The easy way to get this to work is to set the HitTest
property for your 
> plot to 'off'.
> 
>
http://www.mathworks.com/support/solutions/data/1-1B03X.html?solution=1-1B03X
> 
> -- 
> Steve Lord
> slord@mathworks.com 
> 
>