y軸方向にエラーバーについたプロットを行う. エラーの大きさ(半径)を指定する方法と, 上限と下限のそれぞれを指定する方法の二つがある.
with yerrorbarsplot .. using {<x>:}<y>:<ydelta> with yerrorbars
plot .. using <x>:<y>:<ylow>:<yhigh> with yerrorbars
| params | default | value | explanation |
|---|---|---|---|
x |
-- | (double) x | x 座標 |
y |
-- | (double) y | エラーバーの中点 y 座標 |
ydelta |
-- | (double) | これのプラスマイナスを ylow yhigh とする |
ylow |
-- | (double) | エラーバーの下点 y 座標 |
yhigh |
-- | (double) | エラーバーの上点 y 座標 |
ydelta \(\Delta\) を指定する場合は \(y \pm \Delta\) をエラー範囲とする.
$data << EOD
-5 -10 2.5
-4 -8 1.6
-3 -6 0.9
-2 -4 0.4
-1 -2 0.1
0 0 0.0
1 2 0.1
2 4 0.4
3 6 0.9
4 8 1.6
EOD
set grid
plot $data u 1:2:3 with yerrorbars
set terminal svg background rgb 'white'
$data <<EOD
-1 -2 -2.1 -1.9
0 0 1.0 1.2
0.5 0 1.2 1.0
1 2 1.9 2.1
EOD
set grid
set xrange [-1.2:1.2]
plot $data u 1:2:3:4 with yerrorbars pt 5
本来のエラーバーは \(\text{ylow} \leq y \leq \text{yhigh}\) であるべきだが, \(y\) が範囲外にあったり, \(\text{ylow} \geq \text{yhigh}\) の場合でもエラーバーは描画される.