MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Reading Coordinates from Plot


::::::::: 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