matplotlib.figure.Figure.align_labels#
- Figure.align_labels(axs=None)[source]#
Align the xlabels and ylabels of subplots with the same subplots row or column (respectively) if label alignment is being done automatically (i.e. the label position is not manually set).
Alignment persists for draw events after this is called.
- Parameters:
See also
Notes
This assumes that all Axes in
axs
are from the sameGridSpec
, so that theirSubplotSpec
positions correspond to figure positions.