overlinedist
Specifies distance between OVERLINEs and data
Call signature:
overlinedist(x=None)
Help text:
overlinedist(dist) specifies the distance between overlines and the data, in points.
dist = overlinedist() returns current settings.
Download pdf
Example:
import qplot as qp
import numpy as np
qp.figure('overlinedist', 3, 3)
xx = np.array([1, 2])
yy = np.array([3, 4])
dy = np.array([.5, .75])
qp.bars(xx, yy, .5)
qp.errorbar(xx, yy, dy)
qp.overline(xx, np.max(yy+dy), '*')
xx = xx + 2.5
qp.bars(xx, yy, .5)
qp.errorbar(xx, yy, dy)
qp.overlinedist(15)
qp.overline(xx, np.max(yy+dy), '*')
Download source.