You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1774+g324a8afd3
matplotlib
Fork me on GitHub

matplotlib.patches.draw_bbox

matplotlib.patches.draw_bbox(bbox, renderer, color='k', trans=None)[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.