matplotlib.patches.bbox_artist

matplotlib.patches.bbox_artist(artist, renderer, props=None, fill=True) [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.

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

Examples using matplotlib.patches.bbox_artist

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.3.3/api/_as_gen/matplotlib.patches.bbox_artist.html