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.patches.bbox_artist.html
Version 3.1.0
matplotlib
Fork me on GitHub

matplotlib.patches.bbox_artist

matplotlib.patches.bbox_artist(artist, renderer, props=None, fill=True)[source]

This is a debug function to draw a rectangle around the bounding box returned by get_window_extent() of an artist, to test whether the artist is returning the correct bbox.

props is a dict of rectangle props with the additional property 'pad' that sets the padding around the bbox in points.