Skip to content
Prev 15888 / 29559 Next

interacting with plots

My example used locator(1) to get one click, but if you just use
locator() (without the 1) then you can click in as many places as you
want, then it should show you the info for all of them).  If you want
to click and see the results, then click again and see the new
results, etc. then you could put my code into a while loop.  Panning
and zooming using the mouse would be a bit more difficult, but you
might get a similar effect by setting the limits when plotting (and
you can get limits to set using the locator function again).

On Thu, Aug 16, 2012 at 11:09 AM, Frazier, Tyler James
<tyler.j.frazier at tu-berlin.de> wrote: