title: How can I set maximum and minimum value in the color scale of contourf ?
body: <p>How can I set maximum and minimum value in the color scale of contourf of matplotlib?</p>
  
  <p>I explain. I have a set of data and I want to put as maximum in the color scale the 95% percentile of the data.</p>
  
  <p>I have tried in this way:</p>
  
  <pre><code>goh = colors.Normalize(0, perchi)
  
  plt.contourf(x, y, B, norm = goh) #cmap = plt.cm.hot,
  
  plt.colorbar()
  
  plt.show()
  </code></pre>
  
  <p>but it returns to me a plot with only one color...and also the scale is monochromatic...
  I want the whole color scale linear but in the range (min, perchi) and not in (min, max).
  I want that the points between perchi and max are shown as if the y have perchi values...</p>
  
  <p>How could I do?</p>