title: How to format data for use with seaborn
body: <p>I have calculated document distances, and am using MDS in sklearn to plot them with matplotlib. I want to plot them with seaborn (pairplot) but don't know how to translate the MDS data so that it is readable by seaborn.</p>
  
  <pre><code>from sklearn.manifold import MDS
  
  mds = MDS(n_components=2, dissimilarity="precomputed", random_state=1)
  pos = mds.fit_transform(dist) 
  xs, ys = pos[:, 0], pos[:, 1]
  
  names = [name for name in labels] 
  
  # Define the plot
  for x, y, name in zip(xs, ys, names):
      plt.scatter(x, y, color=color)
      plt.text(x, y, name)
  
  
  plt.show()
  </code></pre>