Alphabetical list Categories
errorpatch Draw error patch
Call signature:

errorpatch(xx, yy, dy, dir='both')

Help text:

errorpatch(xx, yy, dy) plots an error patch at (xx,yy+-dy).
Normally, xx, yy, and dy have the same shape. However, it is permissible for dy to be shaped Nx2, in which case lower and upper error bounds are different.
errorpatch(..., 'up') only plots upward; qerrorpatch(..., 'down') only plots downward.

Example:

import pyqplot as qp

import numpy as np

qp.figure('errorpatch', 3, 3)

tt = np.linspace(-np.pi, np.pi, 50)

qp.brush('555')

qp.pen('none')

qp.errorpatch(tt, np.sin(tt), .2*np.cos(tt)+.3)

qp.pen('k', 1, cap='round')

qp.plot(tt, np.sin(tt))

QPlot Documentation — (C) Daniel Wagenaar, 2019