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
  • 393
  • 1
  • 6
  • 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

Damian Lattenero
  • 15,181
  • 3
  • 34
  • 70