Matplotlib Error: "figure Includes Axes That Are Not Compatible With Tight_layout"
After adding bbox_inches='tight' to an invocation of plt.savefig that has worked for several years, I get /usr/local/lib/python2.7/site-packages/matplotlib/figure.py:1744: UserWa
Solution 1:
In my experience, plt.tight_layout
doesn't always work but plt.savefig('fig.png',bbox_inches='tight')
does. In addition, you don't need the former after using the latter and I have come to the conclusion after some pretty extensive testing of it.
Post a Comment for "Matplotlib Error: "figure Includes Axes That Are Not Compatible With Tight_layout""