Gnuplot直方图w /错误栏 [英] Gnuplot Histogram w/ Error Bars
本文介绍了Gnuplot直方图w /错误栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用Gnuplot制作条形图/直方图,但我似乎无法得到出错条。
I'm trying to make a bar chart /histogram with Gnuplot but I cant seem to get the error bars to come out.
这是我的代码:
This is my code:
set style data errorbars
set style histogram errorbars gap 2 lw 1
set style data histograms
plot "ctcf.dat" using 2:3:3:xtic(1)
绘制ctcf.dat数据:
and data:
#Label Mean Error
168-B 24778.23544 33467.8754
168-S 34067.82997 35542.62473
168-B 22519.51553 30835.37332
168-S 112976.1825 143760.3467
但是他们出来错:
我做错了什么?
推荐答案
使用错误条绘制直方图时,在中使用
语句的两列。第一列是框高,第二列是±< error>
:
When plotting histograms with errorbars you need to give only two columns in the using
statement. The first column gives the box height, the second one is ±<error>
:
set style histogram errorbars gap 1 lw 1
set style data histograms
plot "ctcf.dat" using 2:3:xtic(1)
这篇关于Gnuplot直方图w /错误栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文