How can the crosshair of ginput be restricted to one plot?
Posted
by Lucas
on Stack Overflow
See other posts from Stack Overflow
or by Lucas
Published on 2010-05-10T11:51:15Z
Indexed on
2010/05/10
11:54 UTC
Read the original article
Hit count: 170
I wrote a small MATLAB program with a gui. Inside the gui I have, among other things, a plot in which the user should be able to select two points. For this I use the function ginput, which creates a crosshair for selection. Unfortunatley the crosshair extends the whole window and is not restricted to the plot, which doesn't look nice and is confusing for the user. How can the crosshair be restricted only to the area of the plot?
© Stack Overflow or respective owner