Answers for "how to show multiple image in plt.imshow"

0

how to show multiple image in plt.imshow

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)
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language