matplotlib._tight_bbox#
Helper module for thebbox_inches parameter inFigure.savefig.
- matplotlib._tight_bbox.adjust_bbox(fig,bbox_inches,renderer,fixed_dpi=None)[source]#
Temporarily adjust the figure so that only the specified area(bbox_inches) is saved.
It modifies fig.bbox, fig.bbox_inches,fig.transFigure._boxout, and fig.patch. While the figure sizechanges, the scale of the original figure is conserved. Afunction which restores the original values are returned.
On this page