在单个单元格google colab中多次调用matplotlib imshow()时,如何保留以前的图像?

2024-06-28 15:11:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我想使用maltplotlib imshow()在google colab的一个单元格中显示多个图像

当在一个单元格中仅使用一次时,将显示图像

但当进行多个imshow()fcall时,先前的imshow()输出将被清除

wkwk=test("face18.jpg")
#jst for face
face_locations = face_recognition.face_locations(image)
top, right, bottom, left =face_locations[0]
sus_face = image[top:bottom, left:right]

plt.imshow(wkwk)
plt.imshow(sus_face)

此处仅显示表面&;wkwk图像不是

有什么方法可以同时看到这两张图片吗


Tags: 图像imagerighttopgooglepltleftsus