poly
Draw a polygon in paper space
Call signature:
poly(xx, yy)
Help text:
poly(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 millimeters or postscript points.
xx and yy are relative to the top-left of the panel, or to the position set by at. Positive is right and down.
If you draw right up to any edge of the panel, shrink may fail.
See also fill and gpoly.
Example:

import qplot as qp

import numpy as np

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

qp.marker('o', 3)

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

qp.at(1, 2)

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

qp.at(3, 1)

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

qp.shrink()