I am trying to save multiple histograms while iterating through a loop but it just ends up saving as a blank image. I tried the exact same code outside the loop and it seems to work, so I'm not sure why it's not working in the loop.
This is what I have right now
for x in range(len(7)):
plt.figure(figsize = (10, 6))
hist, bins, patches = plt.hist(list[x], 100)
plt.title('pol frac reg '+ str(x))
plt.show()
plt.savefig('pol_frac_' + str(x))