Gnuplot 误差棒偏离主棒
我正在尝试用错误条绘制条形图。这是我的剧本Gnuplot 误差棒偏离主棒,gnuplot,Gnuplot,我正在尝试用错误条绘制条形图。这是我的剧本 set term pngcairo # ... some setup code set style data histogram set style fill solid 1.00 border set style histogram gap 1 errorbars lw 1 set ytics 800 set output "thttpd.png" plot 'thttpd.dat' using 2:3:xtic(1) title col(2)
set term pngcairo
# ... some setup code
set style data histogram
set style fill solid 1.00 border
set style histogram gap 1 errorbars lw 1
set ytics 800
set output "thttpd.png"
plot 'thttpd.dat' using 2:3:xtic(1) title col(2)
我的数据是这样的
File_size Original_thttpd std_dev priv std_dev
16 617.525151042 46.4794798061 623.229175781 17.4696494741
32 1094.72792871 36.709731068 1105.89255892 21.3383446583
64 1736.16701074 14.9846134633 1738.41502295 23.9069441408
......
我明白了
如您所见,错误条与主条分开。我正在使用
gnuplot5.2
。有人能告诉我如何解决这个问题吗?谢谢 这看起来像是在5.2.2版和5.2.4版之间修复的bug。
程序无法识别在plot命令中使用“title col(2)”必然意味着存在包含列标题的额外数据行。您可以通过添加命令绕过此故障
set key autotitle columnhead
这将确保程序知道列标题标签的行
即使自动字幕功能未用于特定的绘图