Matplotlib savefig does not save axes
Defining fig = plt.figure(figsize=(15,10)) at the beginning, saving the file as .jpg and setting bbox_inches=”tight” – plt.savefig(‘filename.jpg’,bbox_inches=”tight”, dpi=150) solved the issue for me. bbox_inches=”tight” seems to fix cropping issues but it didn’t work for .png.