|
From: Michael M. <mic...@gm...> - 2014-04-22 00:59:33
|
Further update: I think I know how to do this. I can register a mouse event handler, and its xdata and ydata properties will tell me the data coordinates. On Mon, Apr 21, 2014 at 4:17 PM, Michael Mossey <mic...@gm...>wrote: > Note: I'm looking at the Picker examples now and one problem I see is that > I'm not asking the user to click on data points, but anywhere on the axes. > > > On Mon, Apr 21, 2014 at 3:49 PM, Michael Mossey <mic...@gm...>wrote: > >> For my application which is a simple sound file editor written with >> matplotlib and PyQt4, I want to detect left and right clicks on the canvas. >> I need to know the data coordinates of the click (i.e., not where on the >> screen the click occurred, but what data point as defined by the axes it >> represents). How do I do this? >> >> Mike >> >> > |