Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Making a List of Mouse Coordinates?' topicStudent Support Forum > General > Archives > "Making a List of Mouse Coordinates?"

Help | Reply To Topic
Author Comment/Response
Bill
10/09/08 1:26pm

Hi:

Does Mathematica have a function where you can run
the mouse pointer over a plot or imported jpg image
and make a list of mouse pointer position coordinates
by clicking on a location?

I used:

Plot[x^2, {x, -3, 3}, AspectRatio -> 1]
Dynamic[MousePosition["Graphics"]]

The code above is nice, but I'd like to make a list of 2D
coordinates made from mouse clicks on selected locations,
that could be used later with the spline program.

If this can be done, please show me the code to do this.


Thanks,

Bill

PS. I'm using Mathematica 6.0.1 on a PC with Win XP.

URL: ,
Help | Reply To Topic