向gnuplot中的多个列添加偏移量

向gnuplot中的多个列添加偏移量,gnuplot,multiple-columns,Gnuplot,Multiple Columns,我试图从多列文件中打印,其中第一列是x,其余应该是y列,如下所示: plot for[col=2:36:1] 'datafile' using 1:col with lines lc rgb 'black' notitle plot for[col=2:36:1] 'datafile' using 1:(col-const) with lines lc rgb 'black' notitle 这很好,但我想做的是用一个常量值偏移所有y列 我试过这样的方法: plot for[col=2:36

我试图从多列文件中打印,其中第一列是x,其余应该是y列,如下所示:

plot for[col=2:36:1] 'datafile' using 1:col with lines lc rgb 'black' notitle
plot for[col=2:36:1] 'datafile' using 1:(col-const) with lines lc rgb 'black' notitle
这很好,但我想做的是用一个常量值偏移所有y列

我试过这样的方法:

plot for[col=2:36:1] 'datafile' using 1:col with lines lc rgb 'black' notitle
plot for[col=2:36:1] 'datafile' using 1:(col-const) with lines lc rgb 'black' notitle
但它不起作用(它似乎绘制了变量col和常量const之间的差异)

有办法做到这一点吗?我在这里找到了如何偏移2列文件(或文件中的特定列)的y列

但我的案子能不能扩大

提前感谢,


Lucian

使用1:(column(coll)-const)应该有效

就是这样!非常感谢你!这应该标记为已解决,并使人们易于找到,因为这个特性在gnuplot文档中根本不明显!在使用doc的
一开始就提到了这一点,谢谢你向我指出这一点!我确实读过那篇文章,但我不明白它的意义!现在它有意义了。