title: Customized color palette in seaborn heatmap
body: <p>I have the following correlation matrix 'corr' drawn using the following commands:</p>
  <pre><code>import seaborn as sns; 
  sns.set()
  import matplotlib.pyplot as plt
  fig, ax = plt.subplots(figsize=(6,6))
  ax = sns.heatmap(corr, annot=True, fmt=&quot;0.2f&quot;, linewidths=.5)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/kTzct.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kTzct.png" alt="enter image description here" /></a></p>
  <p>Is there a way to create a color palette which is symmetric around 0. With greenish tones around 0, and reddish tones when approaching +1 or -1, if this is possible. In this way, green (or cold colors) means 'no correlation', and red (warm colors) means 'high correlation' (either positive or negative).</p>
  <p>Thank you.</p>