Guest User

Untitled

a guest
Jan 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. from PIL import Image
  3. from mpl_toolkits.axes_grid1 import ImageGrid
  4.  
  5. imgs = [..., ...]
  6.  
  7. fig = plt.figure(1, (50., 50.))
  8. grid = ImageGrid(fig, 111, nrows_ncols=(1, 2), axes_pad=0.1)
  9.  
  10. # extent = (-2, 0.3, -2, 1)
  11.  
  12. grid[0].set_title("t1", fontdict=None, loc='center', color = "k")
  13. grid[0].axis('off')
  14. grid[0].imshow(imgs[0])
  15.  
  16. grid[1].set_title("t2", fontdict=None, loc='center', color = "k")
  17. grid[1].axis('off')
  18. grid[1].imshow(imgs[1])
  19.  
  20. plt.show()
Add Comment
Please, Sign In to add comment