matplotlib.patches.bbox_artist

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

一个调试函数,用于在艺术家返回的边框周围绘制一个矩形 Artist.get_window_extent 测试艺术家是否返回正确的bbox。

道具 是矩形props的dict,具有附加属性“pad”,用于在点中设置bbox周围的填充。

使用实例 matplotlib.patches.bbox_artist