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

subplot(rows, cols, r=None, c=None)

Help text:

subplot(rows, cols, idx) defines a new subpanel in Matlab/Octave style.
Note that idx counts from 0, unlike in Matlab/Octave.
subplot(rows, cols, r, c) specifies row and column.
id = subplot(...) returns the id of the subpanel, for use with panel.

Example:

import qplot as qp

import numpy as np

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

qp.subplot(2,1,0)

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

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

qp.shrink(10)

qp.subplot(2,1,1)

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

qp.shrink(10)

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