import numpy as np import matplotlib.pyplot as plt data = np.load('font_data.npy') fig = plt.figure(figsize=(10,10), dpi=80) plt.subplots_adjust(0.05,0.05,0.95,0.95,0.1,0.1) for i in range(100): plt.subplot(10,10,i+1) plt.axis('off') plt.imshow(data[np.random.randint(4808)], cmap='Greys') plt.show()