【发布时间】:2015-08-06 06:56:18
【问题描述】:
根据这个问题Gnuplot smooth confidence interval lines as opposed to error bars 中给出的答案,我能够得到与给出的数据相同的结果(y 的误差是对称的,所以它是 y 加/减误差 Y):
# x y errorY
1 3 0.6
2 5 0.4
3 4 0.2
4 3.5 0.3
代码:
set style fill transparent solid 0.2 noborder
plot 'data.dat' using 1:($2-$3):($2+$3) with filledcurves title '95% confidence', \
'' using 1:2 with lp lt 1 pt 7 ps 1.5 lw 3 title 'mean value'
现在通过连接每个 y+errorY 和 y-errorY 点给出置信带。如果连接不仅仅是一条直线,而是一条平滑线,我希望它是一条平滑线,例如如何使用 smooth csplines.. 平滑数据点。
【问题讨论】:
标签: gnuplot curve-fitting