herrorbars
Draw horizontal error bars
Call signature:
herrorbars(yy, xx, dx, w=None, dir='both')
Help text:
herrorbars(yy, xx, dx) plots horizontal error bars at (xx ± dx, yy).
Normally, yy, xx, and dx have the same shape. However, it is permissible for dx to be shaped Nx2, or for dx to be a 2-tuple, in which case lower and upper error bounds are different. (dx should always be positive).
herrorbars(yy, xx, dx, w) adorns the error bars with vertical lines of given extent (w in points).
herrorbars(..., dir='left') only plots to the left; herrorbars(..., dir='right') only plots to the right.
See also errorbars and errorfill.
Example:

import qplot as qp

import numpy as np

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

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

qp.marker('o', fill='solid')

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

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

qp.pen([0, .4, 1])

qp.marker('o', fill='solid')

qp.mark(2+np.sin(tt-1), tt)

qp.herrorbars(tt, 2+np.sin(tt-1), (.3+0*tt, .2*np.cos(tt)+.3))