You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.1.1.post1090+gb25bb5c
matplotlib
Fork me on GitHub

This Page

matplotlib.axis.XAxis.get_tightbbox

XAxis.get_tightbbox(renderer)

Return a bounding box that encloses the axis. It only accounts tick labels, axis label, and offsetText.