Gnuplot 绘图中的自定义y比例用于
我有一个数据文件,看起来像Gnuplot 绘图中的自定义y比例用于,gnuplot,Gnuplot,我有一个数据文件,看起来像 550 1.436e+00 7.857e-01 5.906e-01 4.994e-01 4.574e-01 4.368e-01 4.260e-01 4.273e-01 4.296e-01 4.406e-01 4.507e-01 4.639e-01 4.821e-01 5.008e-01 5.156e-01 5.378e-01 5.589e-01 5.768e-01 5.970e-01 6.196e-01 6.422e-01 6.642e-01 第一列为x轴,其余为y
550 1.436e+00 7.857e-01 5.906e-01 4.994e-01 4.574e-01 4.368e-01 4.260e-01 4.273e-01 4.296e-01 4.406e-01 4.507e-01 4.639e-01 4.821e-01 5.008e-01 5.156e-01 5.378e-01 5.589e-01 5.768e-01 5.970e-01 6.196e-01 6.422e-01 6.642e-01
第一列为x轴,其余为y轴,共22条曲线
我想绘制数据,以便y tics表示值的立方根。实际上,我希望我的三次曲线变成线性,以表明它们在法向坐标系下是三次曲线(我的任务确定了使用这些坐标)
我尝试使用以下命令:
plot for [i=2:23] datafile using 1:(i ** .333) smooth cspline
它希望列号代替i。
我知道,以下是正确的:
plot datafile using 1:($2 ** .333) smooth cspline
给我第一行想要的情节。但是如何修改
的绘图?如果您希望列号代替I
,则应在使用规范中使用列(I)
plot for [i=2:23] datafile using 1:(column(i) ** .333) smooth cspline
谢谢你,我在谷歌上失去了希望@gluk47——没问题。这不是一个你经常遇到的问题,因为速记$X在文档中更为常见,但我猜$I
在这里不起作用(虽然我没有尝试过它…$I
不起作用,我首先尝试了它。我忘了在我的问题中提到它。