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.GridSpecand if axes are arranged in a 2D grid.- Parameters:
- fig
matplotlib.figure.Figure, optional If
None, use last active figure.
- fig
- Returns:
- margins_inch
Edges left, right, top, and bottom margins of the figure.
margins_inch.leftnumpy.ndarrayof all the nrows left marginsmargins_inch.rightnumpy.ndarrayof all the nrows right marginsmargins_inch.topnumpy.ndarrayof all the ncols top marginsmargins_inch.bottomnumpy.ndarrayof all the ncols bottom margins
- margins_inch