4

How can I make gnuplot plot its plots in full-screen instead of a small window?

slhck
  • 235,242
Anna
  • 273

1 Answers1

1

You can open use the -geometry option of gnuplot to supply the size of the window.

If you use gnuplot inside a script, you can do something like this:

resolution=$(xrandr | grep '*') && resolution=${resolution%  *}
gnuplot -persist -geometry $resolution << EOF
plot sin(x)
EOF

As an alternative you can make this alias in your .bashrc or whatever

alias gnuplotfs="resolution=\$(xrandr | grep '*') && resolution=\${resolution%  *} && gnuplot -geometry \$resolution"
Bernhard
  • 1,143