matplotlib.artist
Artist.
set_in_layout
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
Figure.tight_layout()
fig.savefig(fname, bbox_inches='tight')