matplotlib.patches.draw_bbox

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

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

使用实例 matplotlib.patches.draw_bbox