Selecting points on a Plot
Michael Goffioul
michael.goffioul at gmail.com
Fri Jul 4 15:27:43 CDT 2008
On Fri, Jul 4, 2008 at 10:03 PM, Michael Barton <bartonm09 at gmail.com> 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.
More information about the Help-octave
mailing list