Alphabetical list Categories
rectangle Draw a rectangle in data space
Call signature:

rectangle(x, y, w, h)

Help text:

rectangle(x, y, w, h) draws a rectangle in paper space with given coordinates. The rectangle is drawn with the current pen and filled with the current brush. See also patch.

Example:

import qplot as qp

import numpy as np

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

qp.rectangle(0, 0, 3, 2)

qp.brush('g')

qp.rectangle(1.5, 1, 3, 2)

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