Windows gnuplot-使用伪列0绘制两列之间的差异

Windows gnuplot-使用伪列0绘制两列之间的差异,windows,gnuplot,Windows,Gnuplot,我有一个.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" (usin

我有一个.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)


您首先需要告诉gnuplot您的列是用分号分隔的:
设置数据文件分隔符“
plot 'text.txt' using ($1-$2)