如何 select 在 gnuplot 中只有少数绘图输出为 pdf

How to select only few plot to output as a pdf in gnuplot

我正在用这样的双循环在 pdf 中绘图:

set terminal pdf
set output "fichier.pdf"

set datafile separator ","
set title "test"
set grid
set ylabel "y"
set xlabel "x"
set autoscale
set key on inside left top

do for [t1=0:1]{
do for [t2=0:1]{
plot 'AirEauG10VEtHDebit1mLMinute.dat' using ():(/(80.4/(+t1)**2)) title 'e='.t1
replot 'a.dat' using ():(/(80.4/(+t2)**2)) title 'e='.t2
}
}

unset output

现在,我掌握了所有的情节。这是所有的图表,一张只有一张图,一张有两张图,一张只有一张图等。但我只想在 pdf 中包含两张图。我怎么能告诉 gnuplot 只保存带有两个图的图形?

所以,我不想有 4 页(2 页有一个图,2 页有两个图),而是只有 2 页(有两个图的页)。

如果我不够清楚请告诉我:D

不要使用 replot 输出到文件!这仅对交互式绘图终端有意义。

plot命令可以有多个图,用逗号隔开:

set terminal pdf
set output "fichier.pdf"

set datafile separator ","
f(x, t) = x/(80.4/(x + t)**2)

do for [t1=0:1] {
    do for [t2=0:1] {
        plot 'AirEauG10VEtHDebit1mLMinute.dat' u 1:(f(, t1)) title 'e='.t1,\
        'a.dat' u 1:(f(, t2)) title 'e='.t2
    }
}