title: How To Map the Color of a Curve to A Scalar Value in a Given Range
body: <p>I am attempting to plot 175 curves with a for loop, and coloring each curve based on a scalar value associated with each of the curves. </p>
  
  <p>I've been trying to use matplotlib.colors, and matplotlib.cm to do this, but the color outputs I'm getting are not correct. For reference, I am manipulating the data using pandas instead of numpy. </p>
  
  <pre><code>Map = matplotlib.colors.Normalize(vmin = min(SPARC.SBeff), vmax = 
  max(SPARC.SBeff), clip=True)
  mapper = cm.ScalarMappable(norm=Map,cmap='RdYlGn')
  
  plt.figure(4)
  for i in range(1,175):
      plt.plot(np.log(MM[MM.Name == GalaxyNames[i]].Rad), \
      np.log(MM[MM.Name == GalaxyNames[i]].Vobs),\
      mapper.to_rgba(SPARC[SPARC.Name == GalaxyNames[i]].SBeff[0])
  </code></pre>
  
  <p>I would like each of the curves to have color based on a scalar value, for which I have minimum and maximum values.</p>