|
From: Ethan M. <eam...@gm...> - 2016-08-10 22:22:00
|
Oh wait a minute. I was testing interactively. Yeah, if you put those commands in a script and execute from the command line as "gnuplot script.gp" then it will exit at the end of the "pause mouse", so nothing written to file. Change "pause mouse" to "pause mouse button3" or "pause mouse close" and you should be fine. On Wed, Aug 10, 2016 at 3:12 PM, Ethan Merritt <eam...@gm...> wrote: > The "pause mouse" command tells it to wait for the next mouse click (any > button). > That means the next button1 click is used to terminate the pause command > rather > than to execute the "print MOUSE_X" command. I think you want instead > "pause mouse button3". Nevertheless, even if your first click was > consumed by > the pause rather than the print, all subsequent clicks should cause a > print to file. > And indeed they do when I test here. So I guess I can't reproduce your > problem > except for the case of the first mouse click. > > On Wed, Aug 10, 2016 at 2:03 PM, Pietro Corvisiero <co...@gm...> > wrote: > >> 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 >> ------------------------------------------------------------ >> ------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and >> traffic >> patterns at an interface-level. Reveals which users, apps, and protocols >> are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning reports. http://sdm.link/zohodev2dev >> _______________________________________________ >> gnuplot-info mailing list >> gnu...@li... >> Membership management via: https://lists.sourceforge.net/ >> lists/listinfo/gnuplot-info >> > > |