ErrorBarsY

ErrorBarsY(x, lo, hi, args...; kvs...)

PlotComponent to draw vertical errorbars at horizontal positions x. lo specifies the lower, hi the upper end of the error bar. Both must have the same length as x. args and kvs can be used to set additional style attributes.

SymmetricErrorBarsY(x, y, err, args...)

PlotComponent to draw symmetric vertical errorbars with length 2 * 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 as x and y, 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)