title: How to visualize kmeans clustering on multidimensional data
body: <p>I am using kmeans clustering algorithm on mnist dataset and want to visualize the plots after clustering. So far I did this</p>
  
  <pre><code>from mnist import MNIST
  
  mndata = MNIST('Datasets')
  X_train, y_train = mndata.load_training()
  
  #do the clustering
  k_means = cluster.KMeans(n_clusters=len(np.unique(y_train)))
  k_means.fit(X_train)
  labels = k_means.labels_
  </code></pre>
  
  <p>So, I now have 10 clusters representing 0 to 9. How can I visualize these clusters?</p>