在gnuplot中绘制等距列

在gnuplot中绘制等距列,gnuplot,Gnuplot,我有一个长数据文件(450列),它类似于: x y z x y z x y z... 1 2 4 2 4 3 5 5 7 4 6 8 10 5 7 11 三列是相关的,我想在一个图中绘制1对2,4对5,7对8 在第二张图中,1对3,4对6,7对9 y和z是根据x计算的变量 我试过了,例如 plot for [col=2:10:3] "file.txt" using 1:col with lines 这将绘制y值,但仅与x的第一列相对。 是否有可能在using命令中写入以绘制vs每N列 谢谢

我有一个长数据文件(450列),它类似于:

x y z x y z x y z...
1 2 4 2 
4 3 5 5
7 4 6 8
10 5 7 11
三列是相关的,我想在一个图中绘制1对2,4对5,7对8

在第二张图中,1对3,4对6,7对9

y和z是根据x计算的变量

我试过了,例如

plot for [col=2:10:3] "file.txt" using 1:col with lines
这将绘制y值,但仅与x的第一列相对。 是否有可能在using命令中写入以绘制vs每N列

谢谢你的帮助

您可以使用

plot for [c=1:10:3] "file.txt" using c:(column(c+1))
第二个情节呢

plot for [c=1:10:3] "file.txt" using c:(column(c+2))