Skip to content

Instantly share code, notes, and snippets.

@stanlee321
Forked from mstankie/import-plt.py
Created March 8, 2019 19:04
Show Gist options
  • Save stanlee321/701d9b14267b55564cdd058c450e5ede to your computer and use it in GitHub Desktop.
Save stanlee321/701d9b14267b55564cdd058c450e5ede to your computer and use it in GitHub Desktop.
Two images side-by-side using matplotlib (pylab)
import matplotlib.pyplot as plt
f = plt.figure()
f.add_subplot(1,2, 1)
plt.imshow(np.rot90(imgLr,2))
f.add_subplot(1,2, 2)
plt.imshow(np.rot90(imgRr,2))
plt.show(block=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment