axes not compatible with matplotlib pdf code example
Example: axes not compatible with matplotlib pdf
# Give bbox_inches='tight' as argument in savefig
plt.savefig('fig.png',bbox_inches='tight')
# Give bbox_inches='tight' as argument in savefig
plt.savefig('fig.png',bbox_inches='tight')