Selecting points on a Plot

View: New views
2 Messages — Rating Filter:   Alert me  

Selecting points on a Plot

by Michael Barton-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to select points on a plot, to have them stored in a variable for later use?

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

Re: Selecting points on a Plot

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 4, 2008 at 10:03 PM, Michael Barton <bartonm09@...> 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.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave
LightInTheBox - Buy quality products at wholesale price