Alphabetical list Categories
at Specify location for future text
Call signature:

at(x=None, y=None, phi=None, deg=None, rad=None, along=None, notransform=False)

Help text:

at(x, y) specifies that future text will be placed at data location (x,y) Optional arguments:
  deg - text will be rotated counterclockwise by deg degrees.
  rad - text will be rotated counterclockwise by rad radians.
  phi - specifies that the text will be rotated clockwise by phi radians     (deprecated).
  along - must be a tuple (dx,dy), meaning that the text will be     rotated s.t. the baseline points in the data direction (dx,dy).

x may also be one of 'left,' 'right,' 'center,' 'abs,' 'absolute.' y may also be one of 'top,' 'bottom,' 'middle,' 'abs,' 'absolute.' If x and/or y is omitted, placements reverts to absolute in those dimensions.

Example:

import qplot as qp

import numpy as np

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

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

qp.align('top', 'left')

qp.at(1, 1)

qp.text('one', dx=3, dy=3)

qp.at(2, 4, -np.pi/4)

qp.text('two', dx=3, dy=3)

qp.at('right', 'bottom')

qp.at(3, 2, (4-3), (5-2))

qp.text('three', dx=3, dy=3)

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