How to Save Figure in Matplotlib with Python
www.learningaboutelectronics.com › Articles › How-to-save-aWith the savefig () function, we can save the figure to the current working directory. We can save this figure as any name and any type of image file, such as png, jpg, etc. This is shown in the following code below. import matplotlib.pyplot as plt fig= plt.figure () axes= fig.add_axes ( [0.1,0.1,0.8,0.8]) x= [1,2,3,4,5,6,7,8,9,10,11,12] y= [x ...