import matplotlib.pyplot as plt
fig1, ax1 = plt.subplots(1, 1) # number of rows and columns
# setup the plot values and properties
fig1.savefig('filename1.png')
plt.close(fig1)
fig2, ax1 = plt.subplots(1, 1)
# setup the plot values and properties
fig2.savefig('filename2.png')
plt.close(fig2)