mplutils.align_axes_vertically#

mplutils.align_axes_vertically(ax, reference_ax, alignment='center')[source]#

Set horizontal position of ax relative to reference_ax.

Parameters:
axmatplotlib.axes.Axes

Axes to reposition.

reference_axmatplotlib.axes.Axes

Reference axes.

Should be in the same row as ax.

alignment{"center", "top", "bottom"}, default "center"

Which reference axis to take from reference_ax.