plt savefig fit code example Example: plt.savefig import matplotlib.pyplot as plt plt.pie([1,2,3]) plt.savefig('name')