图中的自定义y比例

时间:2012-11-18 22:05:21

标签: 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轴,总共22条曲线。

我想绘制数据,以便y tics表示值的立方根。实际上,我希望我的三次曲线变为线性,以显示它们在法线坐标中是立方的(并且我的任务使用这些坐标来修复它)。

我尝试使用以下命令:

plot for [i=2:23] datafile using 1:(i ** .333) smooth cspline

它希望列号代替i。 我知道,以下是正确的:

plot datafile using 1:($2 ** .333) smooth cspline

给我第一行所需的情节。但是如何为plot for修改此内容?

1 个答案:

答案 0 :(得分:3)

如果您希望列号代替i,则应在使用规范中使用column(i)

plot for [i=2:23] datafile using 1:(column(i) ** .333) smooth cspline