我有一个.csv文件,组织如下:
425;490
160;343
390;487
35;231
...
我想在 y 轴上绘制 (row1-row2( 的差值,将伪列 0 绘制为 x 轴。
到目前为止,我已经尝试过
plot "test.txt" using $0:($1-$2)
哪个抛出
column() called from invalid context
另一方面
plot "test.txt" (using $0:($1-$2))
似乎有效但扔
'plot "test.txt" (using $0:($1-$2))'
在控制台中。
所以我的问题: 正确的语法是什么?
plot 'text.txt' using 0:($1-$2)
或
plot 'text.txt' using ($1-$2)