Path: news.mathworks.com!not-for-mail
From: "David " <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Axes tools in GUI
Date: Tue, 1 Jul 2008 16:36:03 +0000 (UTC)
Organization: Rensselaer Polytechnic Institute
Lines: 13
Message-ID: <g4dmdi$a0u$1@fred.mathworks.com>
References: <g414n2$no7$1@fred.mathworks.com> <e432d979-f637-4ab4-aca0-cffe9372ee6e@g16g2000pri.googlegroups.com>
Reply-To: "David " <daviddoria@gmail.com>
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 1214930163 10270 172.30.248.37 (1 Jul 2008 16:36:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 1 Jul 2008 16:36:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1408202
Xref: news.mathworks.com comp.soft-sys.matlab:476919



I am actually using imshow to produce the plot, so I'd like
to get the coordinate of the pixel I click on.

I think that is simply the axes1.CurrentPoint property?

So I did this:

function axes1_ButtonDownFcn(hObject, eventdata, handles)
disp('you clicked!')
disp(handles.axes1.CurrentPoint)


but it never gets called when I click on the plot!?