Alphabetical list Categories
shiftedline Renders a line displaced from data points
Call signature:

shiftedline(xx, yy, dx, dy)

Help text:

shiftedline(xx, yy, dx, dy) is like plot(xx, yy) except that the plot is displaced by (dx, dy) points on the graph.
xx, yy, dx, dy may be vectors or scalars. Any scalars are automatically converted to vectors of the appropriate length. All vectors must be the same length.
See also gline and gline2.

Example:

import qplot as qp

import numpy as np

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

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

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

qp.marker('o')

qp.mark(xx, yy)

qp.shiftedline(xx, yy, np.array([-5, 5]), -15)

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