Re: Reading Coordinates from Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg80135] Re: Reading Coordinates from Plot
- From: rxm at inbox.com
- Date: Mon, 13 Aug 2007 04:37:57 -0400 (EDT)
- References: <f9mqlv$ri0$1@smc.vnet.net>
::::::::: On Aug 12, 7:24 am, jrc <jrch... at mcn.net> wrote: : : Apparently v6.0.1 no longer has the mouse functionality that : enables one to easily read coordinates from a plot. <...deleted...> I also missed the ability to read the data from plots. Here is a cheap way to read mouse clicks data = Table[RandomReal[], {10}]; res = {}; Dynamic[res] EventHandler[ ListPlot[data], {"MouseUp" :> AppendTo[res, MousePosition["Graphics"]]} ] Enter each line in a different cell of the notebook. Now, whenever you release the mouse button inside the plot area the output cell of Dynamic[res] will be updated with the position of the click.
- Follow-Ups:
- Re: Re: Reading Coordinates from Plot
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: Reading Coordinates from Plot