Alphabetical list Categories
ycaxis Plot y-axis with labels between ticks
Call signature:

ycaxis(title='', yy=None, labels=None, x=None, lim=None, flip=False, ticklen=None, axshift=None, lbldist=None, ttldist=None, microshift=False)

Help text:

ycaxis plots an y-axis with labels at specfied positions but ticks between the labels rather than at the label positions. First and last tick positions are extrapolated.
All arguments are optional.
  title specifies title for axis.
  yy specifies locations for the labels.
  labels specifies the label texts.
  x specifies intersect with x-axis. If None, defaults to a reasonable position left of the data.
  lim overrides the default positions of the first and last ticks.
  flip, if True, inverts the sign of the settings from ticklen, textdist, and axshift.
ycaxis obeys settings from ticklen, textdist, and axshift.

Example:

import qplot as qp

import numpy as np

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

yy = np.array([1,2,3])

xx = np.array([1,3,2])

qp.pen('none')

qp.brush('777')

qp.hbars(yy, xx, 0.8)

qp.pen('k', .5)

qp.textdist(2, 7)

qp.ycaxis('/Categories/', yy, ['One', 'Two', 'Three'])

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