Alphabetical list Categories
garea Generalized area drawing
Call signature:

garea(ptspecs)

Help text:

garea is to patch and area as gline is to plot and line.

See gline for supported commands.

Example:

import qplot as qp

import numpy as np

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

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

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

qp.pen('none')

qp.brush('r', .5)

qp.garea([[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))]])

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