atompy.get_axes_margins_inches#

atompy.get_axes_margins_inches(ax=None, renderer=None)[source]#

Get left, right, top, bottom margins of ax.

Parameters:
axmatplotlib.axes.Axes, optional

If None, use last active axes.

renderermatplotlib.backend_bases.RendererBase, optional

The renderer used to draw the figure.

Generally not necessary to pass it. If, however, you use a backend that takes a long time to render (e.g., a LuaLaTeX pgf backend), it may increase performance by passing the renderer. Use get_renderer() to get your current renderer.

Returns:
marginsEdges

The margins in inches wrapped in an instance of Edges, e.g., margins.left is the left margin.