You are reading an old version of the documentation (v3.1.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axis.Axis.get_tightbbox.html
Version 3.1.0
matplotlib
Fork me on GitHub

matplotlib.axis.Axis.get_tightbbox

Axis.get_tightbbox(self, renderer)[source]

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