Skip to content

Instantly share code, notes, and snippets.

@mstankie
Created June 15, 2016 19:33
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mstankie/71e49f628beac320953e0460b8ee78c2 to your computer and use it in GitHub Desktop.
Save mstankie/71e49f628beac320953e0460b8ee78c2 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)
@jiangwei221
Copy link

Very helpful!

@johntiger1
Copy link

Is there a way to make it so that the images retain their relative sizes?

@theBikz
Copy link

theBikz commented Mar 13, 2020

Thanks Bro. It's very Helpful.

@biplob004
Copy link

thanks

@faridelaouadi
Copy link

Thanks

@stsmith1991
Copy link

Fianlly! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment