|
[Date Index]
[Thread Index]
[Author Index]
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.
Prev by Date:
Re: "formatting notebook contents" messages, why so many in Mathematica 6?
Next by Date:
Re: Problems naming files with equation names
Previous by thread:
Re: Reading Coordinates from Plot
Next by thread:
Re: Re: Reading Coordinates from Plot
|