This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
How to | Get Coordinates for Points in a Plot
Mathematica's interactive graphics capabilities let you determine the coordinates of a single point. You can also get arbitrary sequences of points and paths, and analyze and manipulate the coordinate lists like any other data in Mathematica.
This is a selection of examples from the complete "How to" screencast. »
With the Get Coordinates tool you can query, copy, and paste coordinates from any graphic or plot.
First, open the Drawing Tools palette from the Graphics menu:
In the Drawing Tools palette, choose the Get Coordinates tool:
When you hover over a graphic, the coordinates of the point under the cursor are displayed next to the cursor. Clicking a point marks the point in the graphic for later copying. Similarly, dragging marks a set of points along the path:
After clicking or dragging points, use EditCopy to put the coordinates of the points on the clipboard:
Here, EditPaste was used to paste in the selected coordinates:
Click for copyable input
To mark a rectangular area on a plot, do Alt+Drag on Windows or Option+Drag on Macintosh. You can resize a marked area using the resize handles. Clicking and dragging on a side of a rectangle will move it without resizing.
You can see here that two rectangular areas were drawn, and the resize handle appeared when the cursor was positioned over a corner:
Here, the coordinate values of the rectangles were copied and pasted in as before:
Click for copyable input
In the pasted data, each rectangle is represented by a list of the minimum and maximum coordinate values of the rectangle.