0

l have 21 images stored in my folder path="home/images" that l want to visualize in one figure.

how can l do that such that for each plot has a title ?

Thank you

vincent75
  • 453
  • 1
  • 7
  • 16

1 Answers1

0

I'd start by using glob:

from PIL import Image
import glob
image_list = []
for filename in glob.glob('home/images*.gif'): #assuming gif
    im=Image.open(filename)
    image_list.append(im)

Then plot them following some example like this See more examples here

developer_hatch
  • 15,898
  • 3
  • 42
  • 75