Gnuplot wxt no longer works

I recently upgraded to Debian jessie, which means I upgraded from gnuplot 4.6.0 to gnuplot 4.6.6 (the problem is the same as with gnuplot 5.0).

I have bash scripts that automate things, and run the gnuplot terminal.

I used either:

gnuplot -persist -e "set title 'Sine curve'; plot sin(x)"

or

gnuplot -persist <<EOF                                   
set title 'Sine curve'
plot sin(x)
EOF

The terminal wxtno longer extends to debian (and derivatives like ubuntu), due to # 751441 .

Now I use the terminal qt. It displays a graph, but this is the end. The window is static and most buttons do not work. I cannot scale, I cannot unzoom, I cannot show the grid.

How to get around this?

+4
source share
1 answer

: , , , , , .

, -persist, wxt, qt. . # 1418.

, " " . . # 1418. script:

gnuplot -e "set title 'Sine curve'; plot sin(x); pause mouse close"

, .

, , , with lines. :

$ gnuplot <<EOF
plot '-' using 1:2 t '' with line
0 0
10 10
e
pause mouse close
EOF

, , , . set clip two, , , . . # 1419. :

$ gnuplot <<EOF
set clip two
plot '-' using 1:2 t '' with line
0 0
10 10
e
pause mouse close
EOF

, , :

  • pause mouse close script
  • set clip two ~/.gnuplot

wxt qt. IMHO, , .

+4

All Articles