atompy.get_figure_margins_inches#

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

Get margins of the figure.

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.

Parameters:
figmatplotlib.figure.Figure, optional

If None, use last active figure.

Returns:
margins_inchEdges

left, right, top, and bottom margins of the figure.

margins_inch.left

numpy.ndarray of all the nrows left margins

margins_inch.right

numpy.ndarray of all the nrows right margins

margins_inch.top

numpy.ndarray of all the ncols top margins

margins_inch.bottom

numpy.ndarray of all the ncols bottom margins