Alphabetical list Categories
arrow Draw an arrowhead
Call signature:

arrow(l=8, w=None, dl=0, dimple=0, dw=0)

Help text:

arrow draws an arrow head pointing to the current anchor set by at.
arrow(l, w) specifies length and (full) width of the arrow head These are specified in points, and default to l=8, w=5.
Optional arguments:
  dl - specifies that the arrow is to be displaced from the    anchor by a distance dl along the arrow's axis.
  dimple - specifies that the back of the arrow head is    indented by dimple points.
  dw - specifies that the arrow is to be displaced from the anchor    by dw points in the orthogonal direction of the arrow's    axis.
For most use cases, darrow is easier.

Example:

import qplot as qp

import numpy as np

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

qp.plot([0, 1, 2, 3],[0, 3, 1, 4])

qp.brush('k')

qp.at(1, 3, along=(0, -1))

qp.arrow()

qp.at(2, 1, along=(1, 1))

qp.arrow(20, 15, 5, 5)

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