atompy.get_row_pads_inches#

atompy.get_row_pads_inches(fig=None)[source]#

Get distance between rows of axes in inches.

Only works if all axes of fig are part of one-and-the-same matplotlib.gridspec.GridSpec and if axes are arranged in a 2D grid.

Ignores colormap axes added by add_colorbar().

Parameters:
figmatplotlib.figure.Figure, optional

Specify the figure within which to update the colorbars.

If None, use last active figure.

Returns:
ypads_inchesndarray, shape(nrows-1, ncols)

2D numpy array of the distance in-between rows in inches.