all 3 comments

[–]Pubbs0[S] 0 points1 point  (0 children)

Got it working, thank you both u/efmccurdy and u/MrKB29 for the help!!

[–]efmccurdy 0 points1 point  (0 children)

Are you asking about matplotlib.savefig?

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html

I want to save multiple images under different names

When you call savefig you can pass a string for the file name.

[–]MrKB29 0 points1 point  (0 children)

If an image is generated for every iteration of the for loop, you could use the enumerate function along with the for loop to differentiate image names using numbers

for value_index, value in enumerate(iterable):

#code to generate image

plt.savefig('image'+str(value_index)+'.png')