I have a intensity chart of a histogram of energies. I currently have a curson running through it. Depending on the position of the cursor I display the corresponding features for that point. What I want to do is : If i click my mouse anywere on the graph, I want the cursor position to be shifted there. Or in other words, my mouse click brings the cursor there. Is this possible ?
Sure it's possible. See the attached example. Note that the calculations for the horizontal and vertical coordinates are not quite symmetrical. The asymmetry happens because the mouse/panel coordinates have an upper-left (0,0) origin while the cursor coordinates have a lower-left (0,0) origin.