Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
Which operating system are you on? – slhck Jun 24 '12 at 20:39
@slhck On Ubuntu (running GTK, if that matters) – Anna Jun 24 '12 at 20:41

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)

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

alias gnuplotfs="resolution=\$(xrandr | grep '*') && resolution=\${resolution%  *} && gnuplot -geometry \$resolution"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.