2
根據這個問題Gnuplot smooth confidence interval lines as opposed to error bars我能夠獲得通過給我的數據相同的結果給出了答案(y的誤差是對稱的,因此它是y加/減errorY):gnuplot的光滑置信帶
# 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點給出。如果連接不僅僅是一條直線,而且還有一條平滑線,比如說如何用數據點平滑數據點。