As soon as you disconnect from the "x11 1" window, scaling is disabled. To regain control, you must return to the specific window ( set term x11 1 ). Another problem is the x11 terminal. You should use wxt, which can keep windows alive.
You can solve your problem using the wxt terminal and separate the two plot commands, so do not disconnect from the window:
--- for loop of script starts--- gnuplot -persist <<EOF set term wxt set title "first" plot x EOF gnuplot -persist <<EOF set term wxt set title "second" plot x**2 EOF ---for loop ends---
In doing so, you have two scalable windows, and you can still use shell variables.
In general, you should not have the console open in order to have active windows, only the corresponding terminal. In particular, the team
gnuplot --persist -e 'plot[0:10] sqrt(x)'
Creates scrollable and scalable windows if used with wxt. Try
gnuplot --persist -e 'set term wxt; plot[0:10] sqrt(x)'
Hope this helps.
Jari laamanen
source share