title: pyplot equivalent for pl.cm.Spectral in matplotlib
body: <p>I have been using the code from pylab, and it works fine:</p>
  
  <pre><code>import pylab as pl
  colors = pl.cm.Spectral(np.linspace(0, 1, 10))
  </code></pre>
  
  <p>However, I want to get away from pylab because in the document it said "The pyplot interface is generally preferred for non-interactive plotting". So I tried to use <code>matplotlib.cm</code> but cannot find the equivalent. Could anyone help me with this?</p>
  
  <p>Thanks!</p>