Alphabetical list Categories
area Draw a polygon in paper space
Call signature:

area(xx, yy)

Help text:

area(xx, yy) draws a polygon with vertices at (xx,yy). The polygon is automatically closed (i.e., it is not necessary for xx[-1] to equal xx[0]).
The polygon is filled with the current brush.
xx and yy are given in postscript points.

See also patch and garea.

Example:

import qplot as qp

import numpy as np

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

qp.marker('o', 3)

qp.mark([1, 3], [2, 1])

qp.at(1, 2)

qp.area([10, 20, 20, 10], [10, 10, 20, 20])

qp.at(3, 1)

qp.area([10, 20, 30, 20], [-10, 0, -10, -20])

qp.shrink()

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