ErrorBarsY¶
-
ErrorBarsY
(x, lo, hi, args...; kvs...)¶ PlotComponent
to draw vertical errorbars at horizontal positionsx
.lo
specifies the lower,hi
the upper end of the error bar. Both must have the same length asx
.args
andkvs
can be used to set additional style attributes.
-
SymmetricErrorBarsY
(x, y, err, args...)¶ PlotComponent
to draw symmetric vertical errorbars with length2 * err
at positions(x, y)
.err
can either be a scalar, which gives each errorbar the same length, or an Array with the same length asx
andy
, which allows to assign a different error to each data point.args
can be used to set additional style attributes.
Attributes¶
barsize | Real |
Example¶
x = 1:10
err = (1:10) ./ 10
errbars = SymmetricErrorBarsY(x, x, err)
p = scatter(x, x)
add(p, errbars)