Alphabetical list Categories
panel Define a new subpanel or reenter a previous one
Call signature:

panel(id=None, rect=None)

Help text:

panel(id, (x, y, w, h)) defines a new panel. Either absolute or relative coordinates may be used:
Absolute means (x, y, w, h) are specified in points (1/72th of an inch).
Relative means (x, y, w, h) are specified relative to figure size.
Coordinates are understood to be relative if all are ≤ 1.
In either case (x, y) are measured from top left.
panel(id) revisits a previously defined panel. panel() reverts to the top level.
If id is None but a rectangle is specified, a new id is automatically assigned and returned.
See also subplot.

Example:

import qplot as qp

import numpy as np

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

xx = np.linspace(0, 3*np.pi, 1000)

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

qp.shrink(1)

qp.pen(pattern='dash')

qp.brush('777')

qp.panel('B', np.array([2.1, 2.3, .9, .7])*72)

qp.pen(pattern='solid')

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

qp.shrink(5)

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