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:
- ax
matplotlib.axes.Axes, optional If
None, use last active axes.
- ax
- Returns:
- bbox
matplotlib.transforms.Bbox The bounding box of just the graph-area of ax in inches.
Useful members:
bbox.x0,bbox.x1Location of the left and right edge in inches. Negative values are left of the figure left edge.
bbox.y0,bbox.y1Lower and upper edge in inches. Negative values are below the figure bottom edge.
bbox.width,bbox.heightWidth and height of the graph-area of ax.
- bbox