title: How to keep the ones in the Diagonal of sns.heatmap?
body: <p>I want to plot the correlation Matrix with sns.heatmap and have some questions. This is my code: </p>
  
  <p><code>plt.figure(figsize=(8,8))
  mask =np.zeros_like(data.corr())
  mask[np.triu_indices_from(mask)] = True
  sns.heatmap(data.corr(), mask=mask, linewidth=1, annot=True, fmt=".2f",cmap='coolwarm',vmin=-1, vmax=1)
  plt.show()</code></p>
  
  <p>and this is what i get:
   [Correlation Matrix][1]
    [1]: <a href="https://i.stack.imgur.com/DX2oN.png" rel="nofollow noreferrer">https://i.stack.imgur.com/DX2oN.png</a> \</p>
  
  <p>Now i have some questions: </p>
  
  <p>1) How can i keep the ones in the diagonale?</p>
  
  <p>2) How can i change the position of the x-axis? </p>
  
  <p>3) I want that the colorbar goes from 1 till -1, but the code is not working</p>
  
  <p>I hope someone can help.</p>
  
  <p>Thx</p>