【发布时间】:2016-07-08 10:35:14
【问题描述】:
我正在使用以下 gnuplot 脚本来绘制由 400 行组成的数据集
set title "Learning time for the proposed approachs (Freebase)"
set term png
set boxwidth 3
set style fill solid
set output "dbpedia.png"
set ylabel "Learning time (seconds)"
set xlabel "increasing size of the training dataset"
set xtics font ", 9"
set grid
everyfifth(col) = (int(column(col))%10 ==0)?stringcolumn(1):""
plot for [col=2:4] "dbpedia_duration.txt" every 10 using col:xticlabels(everyfifth(0)) with lines lw 2 title columnheader
样本数据集
size DDS-rand DDS-ambig DDS-ambig-NN
10 0.003 0.01 0.046
20 0.004 0.423 2.094
30 0.004 1.768 9.262
40 0.004 5.933 30.649
50 0.003 0.586 2.871
60 0.007 2.282 14.226
70 0.005 0.512 2.707
80 0.007 0.089 0.468
90 0.006 4.61 24.471
100 0.006 3.013 16.411
110 0.006 1.578 8.244
120 0.006 1.194 6.418
130 0.008 2.401 12.398
140 0.008 0.014 0.027
150 0.007 0.284 1.541
160 0.009 1.25 7.598
170 0.012 2.027 11.149
问题和疑问
如您所见,一侧的蓝色曲线与另一侧的红色和绿色曲线之间存在很大差异。在黑白纸上很难看到其他曲线。
有没有更好的方法来绘制这个数据集?这真的很烦人,因为我们几乎看不到红色和绿色的曲线。
更新
如果我们按照@Daniel 的建议使用设置的对数刻度 y,我们确实会得到一个清晰的图表。
【问题讨论】:
标签: gnuplot