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$>
References: <k7bv9g$7co$>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1352272028 28862 (7 Nov 2012 07:07:08 GMT)
NNTP-Posting-Date: Wed, 7 Nov 2012 07:07:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: comp.soft-sys.matlab:782208

"Bill Campbell" wrote in message <k7bv9g$7co$>...
> 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.

Yair Altman