Alphabetical list Categories
alignaxes Share axis limits between QPlot panels, aligning the axes
Call signature:

alignaxes(axis, ids)

Help text:

alignaxes('x', ids) aligns x-axes between the named panels. Alignment is only performed within groups of panels that form a vertical stack. Between groups, or if the panels do not form stacks at all, the horizontal scale is still shared (as in commonscale), but there will be no alignment.
alignaxes('y', ids) aligns y-axes. Alignment occurs within groups of panels that form a horizontal row.
alignaxes('xy', ids) aligns both x- and y-axes between the named panels.
Grouping is performed independently for x and y.
ids must be a list of single-letter panel IDs.
See also commonscale and rebalance.

Example:

import qplot as qp

import numpy as np

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

idA = qp.subplot(2,1,0)

xx = np.arange(75)

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

qp.xaxis(ticks=[0,25,50,75])

qp.yaxis(ticks=[0,2,4,6,8,10])

qp.shrink()

idB = qp.subplot(2,1,1)

xx = np.arange(25,125)

qp.plot(xx, 20+2*np.cos(xx/10))

qp.axshift(5)

qp.xaxis(ticks=[25,50,75,100,125], y=18)

qp.yaxis('Sinusoid', ticks=[18,20,22],x=25)

qp.shrink()

qp.alignaxes('xy', [idA, idB])

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