Alphabetical list Categories
line Draw a line series in paper space
Call signature:

line(xx, yy)

Help text:

line(xx, yy) draws a line series between the points (xx,yy).
xx and yy are given in postscript points.

See also plot and gline.

Example:

import qplot as qp

import numpy as np

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

xx = np.linspace(-np.pi, np.pi, 50)

yy = np.sin(xx)

qp.plot(xx, yy)

for n in range(2, len(xx)-1, 5):

        qp.at(xx[n], yy[n], xx[n+1]-xx[n], yy[n+1]-yy[n])

        qp.line([0, 0],[-5, 5])

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