Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import numpy as np
  2.  
  3. plot_image = image_list[1]
  4. for i in range(20):
  5. plot_image = np.concatenate((plot_image, image_list[i+1]), axis=1)
  6.  
  7. plt.figure(figsize = (15,15))
  8. plt.imshow(plot_image, cmap = 'gray');
  9.  
  10. import matplotlib.pyplot as plt
  11. from mpl_toolkits.axes_grid1 import ImageGrid
  12. import numpy as np
  13.  
  14. fig = plt.figure(1)
  15. grid = ImageGrid(fig, 111, # similar to subplot(111)
  16. nrows_ncols=(2, 2), # creates 2x2 grid of axes
  17. axes_pad=0, # pad between axes in inch.
  18. )
  19.  
  20. for i in range(4):
  21. grid[i].imshow(np.random.random((10, 10))) # The AxesGrid object work as a list of axes.
  22. grid[i].axis('off')
  23. grid[i].set_xticks([])
  24. grid[i].set_yticks([])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement