【发布时间】:2016-12-18 17:12:19
【问题描述】:
如何使用matlib函数plt.imshow(image)显示多张图片?
例如我的代码如下:
for file in images:
process(file)
def process(filename):
image = mpimg.imread(filename)
<something gets done here>
plt.imshow(image)
我的结果表明,只有最后处理的图像有效地覆盖了其他图像
【问题讨论】:
-
如果你设置 ncols = 1,这个答案stackoverflow.com/a/46616645/7887458 会起作用。
标签: python matplotlib