Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Loops 如何在gnuplot中仅选择少数打印输出为pdf_Loops_Pdf_Output_Gnuplot - Fatal编程技术网

Loops 如何在gnuplot中仅选择少数打印输出为pdf

Loops 如何在gnuplot中仅选择少数打印输出为pdf,loops,pdf,output,gnuplot,Loops,Pdf,Output,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 'AirEauG10VEtHDebit1mL

我正在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 ($1):($2/(80.4/($2+t1)**2)) title 'e='.t1
replot 'a.dat' using ($1):($2/(80.4/($2+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($2, t1)) title 'e='.t1,\
        'a.dat' u 1:(f($2, t2)) title 'e='.t2
    }
}