like many others I like to get the x,y coordinates in a plot, with a mouse click.
I looked at turorials and also stack overflow questions and answers. copy some example c