Alphabetical list Categories
herrorbar Draw horizontal error bars
Call signature:

herrorbar(yy, xx, dx, w=None, dir='both')

Help text:

herrorbar(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).
herrorbar(yy, xx, dx, w) adorns the error bars with vertical lines of given extent (w in points).
herrorbar(..., 'left') only plots to the left; herrorbar(..., 'right') only plots to the right.

Example:

import qplot as qp

import numpy as np

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

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

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

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

qp.herrorbar(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.herrorbar(tt, 2+np.sin(tt-1), (.3+0*tt, .2*np.cos(tt)+.3))

QPlot Documentation — (C) Daniel Wagenaar, 2014–2023