title: Python: how to heatmappize values in [0, 1] range?
body: <p>I have a set of probabilities ranging from 0 to 1 and I would like to map them to heapmap-alike colors, e.g. to one of those:</p>
  
  <p><a href="https://i.stack.imgur.com/uDTdB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uDTdB.png" alt="enter image description here"></a></p>
  
  <p>then color will be used for <em>matplotlib</em> graphs.</p>
  
  <p>How do I do it the most simple way in Python?</p>