|
From: Dmitri A. S. <das...@gm...> - 2005-07-18 15:04:57
|
Theo Hopman wrote: > Dmitri A. Sergatskov wrote: > >> Any idea why zooming with mouse does not work if I do: >> >> echo "set mouse; plot sin(x)" | gnuplot -persist >> >> ? >> (on linux/x86 - FC4 and FC3) >> >> The problem came about when I was trying to figure out why zooming >> with mouse does not work on octave on MacOSX (with X11 term). >> There is no problem with that on linux/x86 though... >> >> I tried both gnuplot-4 and a recent cvs snapshot. > > > This is exactly the expected behaviour. gnuplot sees end of input from > the pipe and quits. The x11 helper program gnuplot_x11 keeps running, as > requested by -persist, but has nowhere to send the mouse events since > gnuplot has finished. Hence, no mousing. OK, here is a better test (courtesy of John Eaton): mkfifo fifo1 then in one xterm: gnuplot < fifo1 in another xterm: cat > fifo1 set mouse plot sin(x) ... This works as expected on linux/x86, linux/ppc and is not working on MacOSX/X11... (Tiger 10.4, kernel 8.2.0) (BTW, the line in FAQ that one needs to set mouse in .octaverc is probably not the best advice. I think it is better to set it in .gnuplot, this way if gnuplot restarted in the middle of the octave session it still gets mouse support.) > THeo Dmitri. -- |