atompy.get_axes_position_inch#

atompy.get_axes_position_inch(ax=None)[source]#

Get the bounding box of ax in inches, excluding labels, titles, etc.

Wrapper function for matplotlib.axes.Axes.get_position() which converts it to inches.

Parameters:
axmatplotlib.axes.Axes, optional

If None, use last active axes.

Returns:
bboxmatplotlib.transforms.Bbox

The bounding box of just the graph-area of ax in inches.

Useful members:

bbox.x0, bbox.x1

Location of the left and right edge in inches. Negative values are left of the figure left edge.

bbox.y0, bbox.y1

Lower and upper edge in inches. Negative values are below the figure bottom edge.

bbox.width, bbox.height

Width and height of the graph-area of ax.