atompy.get_column_pads_inches#

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

Get distance between columns 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

If None, use last active figure.

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

2D numpy array of the distance in-between columns in inch.