Skip to content

errorbar

plot · scripts/plot/draw/errorbar.m

: errorbar (y, e)
: errorbar (x, y, e)
: errorbar (x, y, neg, pos)
: errorbar (x, y, yneg, ypos, xneg, xpos)
: errorbar (…, linespec)
: errorbar (…, direction)
: errorbar (…, name, value)
: errorbar (ax, …)
: h = errorbar (…)

Plot data with error bars.

The series y is drawn against x (default 1:numel (y)). A single error e is symmetric (y-e to y+e); neg and pos give the extent below and above. direction is "vertical" (default), "horizontal" (the errors apply to x) or "both" (six-argument form). A scalar error is repeated for every point; matrix data give one series per column.

Each series is returned as a group object whose properties include XData, YData, YNegativeDelta, YPositiveDelta, XNegativeDelta, XPositiveDelta and CapSize.