gpoly2
Generalized area drawing
Call signature:
gpoly2(*vglcs)
Help text:
gpoly2 is to fill and poly as gline2 is to plot and line.
See gline2 for supported commands.
Example:

import qplot as qp

import numpy as np

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

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

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

qp.pen('none')

qp.brush('r', .5)

xxx = np.stack((xx, np.flip(xx, 0)))

yyy = np.stack((0*xx+36, 0*xx+72))

qp.gpoly2(qp.AbsData(xxx, np.sin(xxx)),

                      qp.RelPaper(0*xxx, yyy))