Skip to content

Instantly share code, notes, and snippets.

View Jojozzc's full-sized avatar
🏍️
Racing

Jojo Jojozzc

🏍️
Racing
View GitHub Profile
@Jojozzc
Jojozzc / disp_multiple_images.py
Created December 29, 2018 11:15 — forked from soply/disp_multiple_images.py
Plot multiple images with matplotlib in a single figure. Titles can be given optionally as second argument.
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.