figure
Open a QPlot figure
Call signature:
figure(fn=None, w=None, h=None, unit='in')
Help text:
figure(fn, w, h) opens a new QPLOT figure with given filename and size in inches. If h is omitted, h defaults to 3/4 w. If w is also omitted, w defaults to 5 inches.
fn = figure('', w, h) opens a new QPlot figure of given size (in inches) with a temporary filename.
Optional argument unit specifies alternative units. figure understands inch, mm, cm, and pt.
As a convenience, fn = figure(w, h) also works
Example:

import qplot as qp

import numpy as np

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

qp.plot(np.arange(0, 10, .1), np.cos(np.arange(0, 10, .1)))