Alphabetical list Categories
subplot Define a new subpanel in Matlab/Octave style
Call signature:

subplot(rows, cols, idx)

Help text:

subplot(rows, cols, idx) defines a new subpanel in Matlab/Octave style.
id = subplot(...) returns the id of the subpanel, for use with panel.

Example:

import pyqplot as qp

import numpy as np

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

qp.subplot(2,1,1)

xx=np.linspace(0, 2*np.pi, 50)

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

qp.shrink(10)

qp.subplot(2,1,2)

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

qp.shrink(10)

QPlot Documentation — (C) Daniel Wagenaar, 2019