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 data space with given coordinates. The rectangle is drawn with the current pen and filled with the current brush. See also fill and prectangle.
Example:

import qplot as qp

import numpy as np

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

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

qp.brush('g')

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