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

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. warnings.warn("This figure includes Axes that are not compatible ""

Browse Popular Code Answers by Language