Re: Mouse coordinates to output file

François Schosseler <[email protected]> Fri, 11 Mar 2022 16:22:31 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Try this :

set print 'your_file.txt'
pause mouse key "Set point, click+enter=validate, any key=[esc]\\n"
while ( MOUSE_KEY == 13 ) {
print MOUSE_X, MOUSE_Y
pause mouse key
}

François


Le 11/03/2022 à 13:07, David Brant a écrit :
> Having plotted something, is it possible to click the mouse key at multiple specific locations and write a sequence of appended x, y coordinates to an ascii text file?
>
> I can get this to work in the GUI using the following, but i need the hard copy.
>
> plot 'something'
> pause mouse keypress
> print "Keystroke ", MOUSE_KEY, " at ", MOUSE_X, " ", MOUSE_Y
>
> Any advice would be much appreciated. Dave
>
> _______________________________________________
> gnuplot-info mailing list
> [email protected]
> Membership management via:https://lists.sourceforge.net/lists/listinfo/gnuplot-info

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info