本文整理汇总了Python中backend_agg.FigureCanvasAgg.print_figure方法的典型用法代码示例。如果您正苦于以下问题:Python FigureCanvasAgg.print_figure方法的具体用法?Python FigureCanvasAgg.print_figure怎么用?Python FigureCanvasAgg.print_figure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类backend_agg.FigureCanvasAgg
的用法示例。
在下文中一共展示了FigureCanvasAgg.print_figure方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print_figure
# 需要导入模块: from backend_agg import FigureCanvasAgg [as 别名]
# 或者: from backend_agg.FigureCanvasAgg import print_figure [as 别名]
def print_figure(self, filename, *args, **kwargs):
# Use pure Agg renderer to draw
FigureCanvasAgg.print_figure(self, filename, *args, **kwargs)
# Restore the current view; this is needed because the
# artist contains methods rely on particular attributes
# of the rendered figure for determining things like
# bounding boxes.
if self._isDrawn:
self.draw()