[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selecting points on a Plot
From: |
Michael Goffioul |
Subject: |
Re: Selecting points on a Plot |
Date: |
Fri, 4 Jul 2008 22:27:43 +0200 |
On Fri, Jul 4, 2008 at 10:03 PM, Michael Barton <address@hidden> wrote:
> Is it possible to select points on a plot, to have them stored in a variable
> for later use?
See ginput: this allows to select an arbitrary point on a plot using
the mouse and to get the corresponding X-Y values in axes
corrdinates. If you want to select a point of an existing line,
then you can use ginput to get an arbitrary point and find the
closest data point using the minimum distance between data
points and the clicked point.
Michael.