when I enclose my plots in while loop, the graph does not stay maximized in a maximized window - it just blinks a little moment and reverts to its initial size (small). It cannot be maximized manually either (via the icon).
Sample code:
while (1) {
plot \
'< cat sysload.host.log | sed "s~| ~~g"' using 2:3 with boxes linetype rgb "green" title "HOST avgl1", \
'< cat sysload.host.log | sed "s~| ~~g"' using 2:8 with points linetype rgb "green" title "HOST #cpus", \
'< cat sysload.host.log | sed "s~| ~~g"' using 2:($9*ymax_host/100) with lines linetype rgb "green" title "HOST %RAM used", \
'< cat sysload.is.log | sed "s~| ~~g"' using 2:3 with impulses linetype rgb "red" title "IS avgl1", \
'< cat sysload.is.log | sed "s~| ~~g"' using 2:8 with points linetype rgb "red" title "IS #cpus", \
'< cat sysload.is.log | sed "s~| ~~g"' using 2:($9*ymax_is/100) with lines linetype rgb "red" title "IS %RAM used", \
'< cat sysload.mail.log | sed "s~| ~~g"' using 2:3 with histeps linetype rgb "blue" title "MAIL - avgl1", \
'< cat sysload.mail.log | sed "s~| ~~g"' using 2:8 with points linetype rgb "blue" title "MAIL - #cpus", \
'< cat sysload.mail.log | sed "s~| ~~g"' using 2:($9*ymax_mail/100) with lines linetype rgb "blue" title "MAIL %RAM used"
pause 5 "waiting 5s to redraw..."
#reread
#replot
}
Using "reread" and/or "replot" does not help.
When I plot without the while loop and maximize the window, the graph gets maximized, too.
sample code:
plot \
'< cat sysload.host.log | sed "s~| ~~g"' using 2:3 with boxes linetype rgb "green" title "HOST avgl1", \
'< cat sysload.host.log | sed "s~| ~~g"' using 2:8 with points linetype rgb "green" title "HOST #cpus", \
'< cat sysload.host.log | sed "s~| ~~g"' using 2:($9*ymax_host/100) with lines linetype rgb "green" title "HOST %RAM used", \
'< cat sysload.is.log | sed "s~| ~~g"' using 2:3 with impulses linetype rgb "red" title "IS avgl1", \
'< cat sysload.is.log | sed "s~| ~~g"' using 2:8 with points linetype rgb "red" title "IS #cpus", \
'< cat sysload.is.log | sed "s~| ~~g"' using 2:($9*ymax_is/100) with lines linetype rgb "red" title "IS %RAM used", \
'< cat sysload.mail.log | sed "s~| ~~g"' using 2:3 with histeps linetype rgb "blue" title "MAIL - avgl1", \
'< cat sysload.mail.log | sed "s~| ~~g"' using 2:8 with points linetype rgb "blue" title "MAIL - #cpus", \
'< cat sysload.mail.log | sed "s~| ~~g"' using 2:($9*ymax_mail/100) with lines linetype rgb "blue" title "MAIL %RAM used"
pause -1 "waiting... (hit ENTER)"
Interresting is that when I set terminal to "x11":
set terminal x11 enhanced font "arial,10"
, it stays maximized. Without "set terminal" it defaults itself to "qt".
I could use this "fix", but it is not convenient, because the x11 terminal produces worse output, fonts are aliased, have huge spacing and do not render diacritics (czech "žčšř" etc.) correctly :/
Any help? Thanks!
Using Xubuntu 15.04 with gnuplot 4.6 patchlevel 6
EDIT: sample input data:
$ tail -1 sysload.mail.log
2015-09-06 00:16:01 | 0.22 0.32 0.29 1/419 7539 | 6 | 76.0 | 531120240