title: Visualize MNIST dataset using OpenCV or Matplotlib/Pyplot
body: <p>i have MNIST dataset and i am trying to visualise it using pyplot. The dataset is in <code>cvs</code> format where each row is one image of 784 pixels. i want to visualise it in <code>pyplot</code> or <code>opencv</code> in the 28*28 image format. I am trying directly using :</p>
  
  <pre><code>plt.imshow(X[2:],cmap =plt.cm.gray_r, interpolation = "nearest") 
  </code></pre>
  
  <p>but i its not working? any ideas on how should i approach this.</p>