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 closed (i.e., it is not necessary for xx(end) to equal xx(1)).
The polygon is filled with the current brush.
xx and yy are given in postscript points. See also patch and garea.

Example:

import pyqplot as qp

import numpy as np

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

qp.area([1, 2, 2, 1]*72, [1, 1, 2, 2]*72)

qp.area([2.5, 2.5, 2]*72, [2, 2.5, 2.5]*72)

QPlot Documentation — (C) Daniel Wagenaar, 2019