Skip to content

Instantly share code, notes, and snippets.

Avatar

Ronald Wahome RonKG

View GitHub Profile
@RonKG
RonKG / disp_multiple_images.py
Created Oct 29, 2017 — forked from soply/disp_multiple_images.py
Plot multiple images with matplotlib in a single figure. Titles can be given optionally as second argument.
View disp_multiple_images.py
import matplotlib.pyplot as plt
import numpy as np
def show_images(images, cols = 1, titles = None):
"""Display a list of images in a single figure with matplotlib.
Parameters
---------
images: List of np.arrays compatible with plt.imshow.
You can’t perform that action at this time.