gpoly
Generalized area drawing
Call signature:
gpoly(ptspecs)
Help text:
gpoly is to fill and poly as gline is to plot and line.
See gline for supported commands.
Example:

import qplot as qp

import numpy as np

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

xx = np.linspace(-np.pi, np.pi, 50)

qp.plot(xx, np.sin(xx))

qp.pen('none')

qp.brush('r', .5)

qp.gpoly([[qp.AbsData(0, 0)],

                    [qp.AbsData(0, 0), qp.RelPaper(0, 36)],

                    [qp.AbsData(1, np.sin(1)), qp.RelPaper(0, 36)],

                    [qp.AbsData(1, np.sin(1))]])