本文簡要介紹 python 語言中matplotlib.backends.backend_agg.RendererAgg.restore_region
的用法。
-
恢複保存的區域。如果給定 bbox(BboxBase 的實例,或其範圍),則僅恢複 bbox 指定的區域。
xy
(一對浮點數)可選地指定將恢複區域的新位置(原始區域的 LLC,而不是 bbox 的 LLC)。>>> region = renderer.copy_from_bbox() >>> x1, y1, x2, y2 = region.get_extents() >>> renderer.restore_region(region, bbox=(x1+dx, y1, x2, y2), ... xy=(x1-dx, y1))
用法
restore_region(region, bbox=None, xy=None)
相關用法
- Python matplotlib RendererAgg.stop_filter用法及代碼示例
- Python matplotlib RegularPolyCollection.sticky_edges用法及代碼示例
- Python matplotlib Rectangle用法及代碼示例
- Python matplotlib RegularPolyCollection.set_hatch用法及代碼示例
- Python matplotlib RegularPolyCollection用法及代碼示例
- Python matplotlib RectangleSelector用法及代碼示例
- Python matplotlib Rectangle.set_bounds用法及代碼示例
- Python matplotlib RGBAxes用法及代碼示例
- Python matplotlib axvspan用法及代碼示例
- Python matplotlib Axes.get_legend_handles_labels用法及代碼示例
- Python matplotlib AbstractMovieWriter用法及代碼示例
- Python matplotlib triplot用法及代碼示例
- Python matplotlib StarPolygonCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.hist用法及代碼示例
- Python matplotlib boxplot用法及代碼示例
- Python matplotlib subplots用法及代碼示例
- Python matplotlib InsetPosition用法及代碼示例
- Python matplotlib ToolManager.toolmanager_disconnect用法及代碼示例
- Python matplotlib Figure.set_size_inches用法及代碼示例
- Python matplotlib figlegend用法及代碼示例
- Python matplotlib Axes.step用法及代碼示例
- Python matplotlib Axes.contour用法及代碼示例
- Python matplotlib LassoSelector用法及代碼示例
- Python matplotlib BrokenBarHCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.plot用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.backends.backend_agg.RendererAgg.restore_region。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。