Gnuplot:如何将文件中的每一行绘制为单独的图形?

Gnuplot:如何将文件中的每一行绘制为单独的图形?,gnuplot,Gnuplot,我知道在gnuplot中绘制圆的命令: plot 'circle.txt' using 1:2:3 with circles 假设circle.txt包含n行且每行包含不同圆的(centerX,centerY,半径),例如: #x y radius 0 0 1 1 1 2 2 2 3 如何生成包含不同圆圈的n图像-每行一个图像?这将适用于gnuplot 4.4及更高版本: gnuplot> n = "`awk 'END {print NR}' < c

我知道在gnuplot中绘制圆的命令:

plot 'circle.txt' using 1:2:3 with circles
假设
circle.txt
包含
n行
且每行包含不同圆的(
centerX
centerY
半径
),例如:

#x  y   radius
0   0   1
1   1   2
2   2   3

如何生成包含不同圆圈的
n
图像-每行一个图像?

这将适用于gnuplot 4.4及更高版本:

gnuplot> n = "`awk 'END {print NR}' < circle.txt`"
gnuplot> i=0; while i<n{set term wxt i; plot 'circle.txt' every ::i::i using 1:2:3 with circles; i=i+1}
gnuplot>n=“'awk'END{print NR}”gnuplot>i=0;虽然i@user69910请考虑通过点击复选来接受答案。✓) 旁边的投票按钮或评论什么不适合你。