Alphabetical list Categories
hbars Horizontal bar plot in data coordinates
Call signature:

hbars(yy, xx, h=None, x0=0)

Help text:

hbars(yy, xx, h) draws a horizontal bar graph of data xx at yy with bars of width h (in the vertical direction), specified in data coordinates.
hbars(yy, xx, h, x0) specifies a nonzero baseline of the plot.
x0 may also be a vector, which must be the same length as xx and yy. This is useful for creating stacked bar graphs. Note that xx is never relative to x0.
If h is not given, it defaults to mean(diff(yy)).
If the length of the yy vector is one greater than the length of the xx vector, the yy vector is taken to represent the edges of the bins.

Example:

import qplot as qp

import numpy as np

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

qp.brush('777')

yy = np.arange(0, 7)

qp.hbars(yy, np.sin(yy/2), 0.5)

qp.yaxis('', yy, ["One", "Two", "Three", "Four", "Five", "Six", "Seven"], lim=[-.4, 6.4])

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