title: How to invert color of seaborn heatmap colorbar
body: <p>I use an heatmap to visualize a confusion matrix. I like the standard colors, but I would like to have 0s in light orange and highest values in dark purple.</p>
  
  <p>I managed to do so only with another set of colors (light to dark violet), setting:</p>
  
  <pre><code>colormap = sns.cubehelix_palette(as_cmap=True)
  ax = sns.heatmap(cm_prob, annot=False, fmt=".3f", xticklabels=print_categories, yticklabels=print_categories, vmin=-0.05, cmap=colormap)
  </code></pre>
  
  <p>But I want to keep these standard ones. This is my code and the image I get.</p>
  
  <pre><code>ax = sns.heatmap(cm_prob, annot=False, fmt=".3f", xticklabels=print_categories, yticklabels=print_categories, vmin=-0.05)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/sf1vo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sf1vo.png" alt="enter image description here"></a></p>