':'绘制多列数据文件时gnuplot中的预期错误

时间:2016-04-01 11:54:42

标签: gnuplot

plotFile_bin.p

 1 #Chart properties
 2 set title "Cumulative binning"
 3 set terminal svg size 1200,1800
 4 set out '/ethCfmTopo/2way_delay/data/spoke-ntp/cumulative_binning.svg'
 5 set multiplot layout 10,1 title "Multiplot"
 6 set autoscale y
 7 set autoscale x
 8 set ylabel "Iterations"
 9 set xlabel "Round trip ms"
10 set style data histogram
11 set style fill solid border
12 set xtics scale 0 nomirror rotate by -45
13 plot for [COL=2:9] '/ethCfmTopo/2way_delay/data/spoke-ntp/data_binningbin.log' using COL:xticlabels(1) title columnheader, for [COL=2:9] '' using 0:COL:COL w labels title columnheader

在运行上面的代码时我得到了':'预期的错误,在许多论坛上搜索它没有得到任何线索。有人可以帮忙吗?

错误输出

#gnuplot plotFile_bin.p 

plot for [COL=2:9] '/ethCfmTopo/2way_delay/data/spoke-ntp/data_binningbin.log' using COL:xticlabels(1) title columnheader, for [COL=2:9] '' using 0:COL:COL w labels title columnheader
             ^
"plotFile_bin.p", line 13: ':' expected
下面的

是我的数据文件:

0       0       0       0       0       0       0       0       0
1.01-1.1        0       0       0       0       0       0       0       0
1.1-1.2 1       2       4       6       0       2       3       3
1.2-1.3 173     168     188     248     189     234     206     216
1.3-1.4 1529    1638    1755    1765    1816    1842    1683    1662
1.4-1.5 785     671     546     463     479     408     597     600
1.5-1.6 1       4       0       1       5       3       3       0
1.6-1.7 1       0       0       0       0       0       0       0
1.7-1.8 1       1       1       2       3       0       0       1
1.8-1.9 2       0       4       1       3       3       0       3
1.9-2   0       1       0       2       4       1       0       2
2-2.3   1       1       0       0       0       0       1       0
2.3-2.6 0       0       1       0       0       0       0       0
2.6-3   0       0       0       0       0       0       0       0
3-4     0       0       0       0       0       0       1       0
4-5     1       0       0       0       0       0       0       0
5-7     0       0       0       0       0       0       0       0
7-10    1       1       1       1       0       0       0       1
10-16   4       13      0       9       0       7       6       11
16-21   0       0       0       2       1       0       0       1
21-31   0       0       0       0       0       0       0       0
>31     0       0       0       0       0       0       0       0

1 个答案:

答案 0 :(得分:0)

至少更新到gnuplot 4.4.0。在那里添加了对迭代([COL = 2:9] ......)的绘图的支持。