python - Plotting list of picturelists in several plots -
i'v got list picture-path's , want "plot" them in several plots e.g:
list = [['./path1/pic1.jpg','./path1/pic2.jpg',...],['./path2/pic1.jpg',...],[...]]
the output has in e.g 3 plots pictures list's
i've tried way seems not right because error
fig, ax = plt.subplots(len(list)) image in list: im = image.open(image) ax.imshow(im) attributeerror: 'numpy.ndarray' object has no attribute 'imshow'
i tried im = mpimg.imread(image)
gaves me same result , ax.imshow(image)
without "opening"
maybe know how do this...
subplots
function returns ndarray
of axes. it's length same number of subplots created. have index , show image on right one.
images = [...] fig, axes = plt.subplots(len(images)) i, image in enumerate(images): im = image.open(image) axes[i].imshow(im)
Comments
Post a Comment