Answers for "UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect. self.figure.tight_layout()"

Go
0

axes not compatible with matplotlib pdf

# Give bbox_inches='tight' as argument in savefig

plt.savefig('fig.png',bbox_inches='tight')
Posted by: Guest on August-10-2020

Code answers related to "UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect. self.figure.tight_layout()"

Browse Popular Code Answers by Language