Concept Flow - Saving figures to files
Create plot with matplotlib
Call plt.savefig(filename)
Figure saved to file
Optionally close figure with plt.close()
End
First, create a plot. Then call savefig() with a filename to save the image file. Optionally close the figure to free memory.