fig,ax = plt.subplots(3,2,figsize=(25,10),) i,j = 0,0 for each in list_of_images: img = cv.imread(each.name) ax[i,j].imshow(img) if j == 1: j = 0 if i != 2: i += 1 else: j += 1