Mouse events?


I’m currently trying to draw a curve on a 2D plots to fit with maximums
I’m pretty sure, that I could do it faster, than my fitting program if I was able to get the positions (xbin,ybin) of the mouse when I press enter.

Does it exist something to get the position of the mouse on a plot ?
I tried to be clear,… tell me if not.


May be something similar (simpler) to what is done here: