Path: news.mathworks.com!not-for-mail
From: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plot triggered by mouseover
Date: Wed, 7 Nov 2012 07:07:08 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 14
Message-ID: <k7d1as$s5u$1@newscl01ah.mathworks.com>
References: <k7bv9g$7co$1@newscl01ah.mathworks.com>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1352272028 28862 172.30.248.37 (7 Nov 2012 07:07:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 Nov 2012 07:07:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:782208

"Bill Campbell" wrote in message <k7bv9g$7co$1@newscl01ah.mathworks.com>...
> I have a horizontal map of e.g. temperature, and use ginput to select a lat,lon and plot a vertical profile at that location in a separate figure. What I'd like is to have a figure that dynamically displays the profile wherever the mouse is, and freezes the plot when I click.  So I can hover over the plot, see how the vertical profiles differ as I move the mouse over different locations, and click if the profile looks interesting.
> 
> Bill Campbell
> Naval Research Laboratory
> Monterey, CA


My DataMatrix utility on the File Exchange should get you pretty close to what you describe. You should be able to easily adapt the code for your needs.
http://www.mathworks.com/matlabcentral/fileexchange/16181-datamatrix

Yair Altman 
http://UndocumentedMatlab.com