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 palette from the menu:
In the palette, choose the Get Coordinates
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 to put the coordinates of the points on the clipboard:
Here, was used to paste in the selected coordinates:
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:
In the pasted data, each rectangle is represented by a list of the minimum and maximum coordinate values of the rectangle.