title: plotting MNIST samples
body: <p>I'm trying to plot 10 samples from the MNIST dataset. One of each digit. Here's the code:</p>
  
  <pre><code>import sklearn
  import pandas as pd
  import matplotlib.pyplot as plt
  import numpy as np
  from sklearn import datasets
  
  mnist = datasets.fetch_mldata('MNIST original')
  y = mnist.target
  X = mnist.data
  
  for i in range(10):
      im_idx = np.argwhere(y == i)[0]
      print(im_idx)
      plottable_image = np.reshape(X[im_idx], (28, 28))
      plt.imshow(plottable_image, cmap='gray_r')
      plt.subplot(2, 5, i + 1)
  
  plt.plot()
  </code></pre>
  
  <p>For some reason, the zero digit is being skipped in the plot.</p>
  
  <p>Why?</p>