|
From: Pietro C. <co...@gm...> - 2016-08-10 21:03:39
|
I upgraded from gnuplot 4.6 to gnuplot 5.0 on Linux Ubuntu 14.04. After upgrading, apart minor problems, I cannot handle mouse support. My goal is to click (left button) on screen and print MOUSE_X values to a file as may times as I need. The procedure ends clicking right button: the x11 window closes and the control comes back to the next script commands.. Just to summarize my problem I enclose a few lines script, working fine on gluplot 4.6, but not on gnuplot 5.0. Running gnuplot5, I see on the x11 window the mouse prompt (a cross) but after the first click the procedure stops and nothing is written on file. Can someone solve my problem? Many thanks! set mouse f(x)=x set print 'temp_ch' set term x11 #bind all "Button1" "print MOUSE_X; replot" bind all "Button1" "print MOUSE_X" bind "Button1" plot f(x) pause mouse |