想象一下,我有一个名为'test_gnu.txt'的简单数据文件如下:
0.32,0.116,0.398989898989899
0.34,0.010,0.01212121212121212
0.36,0.035,0.11313131313131312
0.38,0.022,0.06666666666666665
0.4,0.070,0.11919191919191922
0.42,0.026,0.06565656565656566
0.44,0.077,0.15858585858585858
0.46,0.011,0.01616161616161616
我想绘制第一位数字和第二位数字。因此命令将是:
使用1:2 t'lablablab'
绘制'test_gnu.txt'它给了我愚蠢的错误,结果与数据无关。怎么了?
答案 0 :(得分:1)
你需要
set datafile separator ","
之前你可以画。
http://www.gnuplot.info/docs_4.0/gnuplot.html#set_datafile_separator