Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 558 Bytes

suplabels.rst

File metadata and controls

19 lines (14 loc) · 558 Bytes

supxlabel and supylabel

It is possible to add x- and y-labels to a whole figure, analogous to .FigureBase.suptitle using the new .FigureBase.supxlabel and .FigureBase.supylabel methods.

np.random.seed(19680801) fig, axs = plt.subplots(3, 2, figsize=(5, 5), constrained_layout=True, sharex=True, sharey=True)

for nn, ax in enumerate(axs.flat):

ax.set_title(f'Channel {nn}') ax.plot(np.cumsum(np.random.randn(50)))

fig.supxlabel('Time [s]') fig.supylabel('Data [V]')