def plot_10_by_10_images(images):
 fig = plt.figure()
 images = [image[3:25, 3:25] for image in images]
 for x in range(10):
  for y in range(10):
   ax = fig.add_subplot(10, 10, ((10 * y) + x))
   ax.matshow(images[((10 * y) + x)], cmap=matplotlib.cm.binary)
   plt.xticks(np.array([]))
   plt.yticks(np.array([]))
 plt.show()

def plot_10_by_10_images ( images ) : fig = plt . figure ( ) images = [ image [ 3 : 25 , 3 : 25 ] for image in images ] for x in range ( 10 ) : for y in range ( 10 ) : ax = fig . add_subplot ( 10 , 10 , ( ( 10 * y ) + x ) ) ax . matshow ( images [ ( ( 10 * y ) + x ) ] , cmap = matplotlib . cm . binary ) plt . xticks ( np . array ( [ ] ) ) plt . yticks ( np . array ( [ ] ) ) plt . show ( )
plot 100 mnist images in a 10 by 10 table .