errorpatch
Draw error patch
Call signature:
errorpatch(xx, yy, dy=None, dir='both')
Help text:
errorpatch(xx, yy, dy) plots an error patch at (xx, yy ± dy).
Normally, xx, yy, and dy all are N-vectors. errorpatch(..., 'up') only plots upward; errorpatch(..., 'down') only plots downward.
To specify downward and upward errors separately, dy may be shaped Nx2.
dy must be positive, even for the downward error.
errorpatch(xx, yy), where yy is shaped Nx2, directly specifies the bounds as (xx, yy[:,0]) and (xx, yy[:,1]), much like matplotlib's fill_between.
Download pdf