14

I am running a simple script, that reads data from a file and plots it. My problem is that I reread and replot the data, as the file continuously changes. Whenever I use refresh the plot window becomes active again, which I would like to prevent. I would like the plot to be updated in the background. Is this possible?

My sample script:

#!/usr/bin/gnuplot
set datafile separator ","
plot "data.dat" using 1:3
pause 1; refresh; reread;
1
  • For anybody trying to use this technique: The 'refresh' command was invalid when I tried it. It worked when I replaced it with 'replot'
    – HXCaine
    Commented Feb 28, 2013 at 17:27

1 Answer 1

16

This depends on what terminal you're using. wxt, x11 and qt support a noraise option:

set term x11 1 noraise

This should allow it to stay in the background.

1
  • 2
    set term qt noraise for those using Qt. =)
    – Translunar
    Commented Feb 11, 2015 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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