How to make gnuplots fullscreen?

4

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

Anna

Posted 2012-06-24T20:28:11.647

Reputation: 243

http://stackoverflow.com/questions/25409071/how-to-open-gnuplots-in-full-screen-and-a-particular-size – Ciro Santilli 新疆改造中心法轮功六四事件 – 2015-10-09T08:40:03.310

Which operating system are you on? – slhck – 2012-06-24T20:39:19.217

@slhck On Ubuntu (running GTK, if that matters) – Anna – 2012-06-24T20:41:14.550

Answers

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

Posted 2012-06-24T20:28:11.647

Reputation: 1 017