例:
ファイル "looper" が次のようなファイルで
a=a+1
plot sin(x*a)
pause -1
if(a<5) reread
a=0
load 'looper'
ファイル "data" が、各行に、0 から 10 までの範囲 (yrange) の 6 つのデ
ータ を持ち、最初が x 座標で、その他は 5 つの異なる関数の、その x での
値であるとします。そして、ファイル "plotter" が
c_p = c_p+1
plot "$0" using 1:c_p with lines linetype c_p
if(c_p < n_p) reread
n_p=6
c_p=1
unset key
set yrange [0:10]
set multiplot
call 'plotter' 'data'
unset multiplot
竹野茂治@新潟工科大学