matplotlib.patches.draw_bbox

matplotlib.patches.draw_bbox(bbox, renderer, color='k', trans=None)[source]

A debug function to draw a rectangle around the bounding box returned by an artist's Artist.get_window_extent to test whether the artist is returning the correct bbox.