savefig
Also written: fig.savefig(), plt.close
The Figure method that writes the image to a file, choosing the format from the file ending. `plt.close(fig)` then frees it from memory.
Also written: fig.savefig(), plt.close
The Figure method that writes the image to a file, choosing the format from the file ending. `plt.close(fig)` then frees it from memory.