ErrorBarsX¶
-
ErrorBarsX(y, lo, hi, args...; kvs...)¶ PlotComponentto draw horizontal errorbars at vertical positionsy.lospecifies the lower,hithe upper end of the error bar. Both must have the same length asy.argsandkvscan be used to set additional style attributes.
-
SymmetricErrorBarsX(x, y, err, args...)¶ PlotComponentto draw symmetric horizontal errorbars with length2 * errat positions(x, y).errcan either be a scalar, which gives each errorbar the same length, or an Array with the same length asxandy, which allows to assign a different error to each data point.argscan be used to set additional style attributes.
Attributes¶
| barsize | Real |
Example¶
x = 1:10
err = (1:10) ./ 10
errbars = SymmetricErrorBarsX(x, x, err)
p = scatter(x, x)
add(p, errbars)
