📜  如何在 plt.imshow 中显示多个图像 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:44.285000             🧑  作者: Mango

代码示例1
import matplotlib.pyplot as plt
def show_images(images: List[numpy.ndarray]) -> None:
    n: int = len(images)
    f = plt.figure()
    for i in range(n):
        # Debug, plot figure
        f.add_subplot(1, n, i + 1)
        plt.imshow(images[i])

    plt.show(block=True)