mask=np.triu(np.ones_like(corr,dtype=bool)) f ,ax = plt.subplots(figsize=(11,9)) cmap=sns.diverging_palette(230,20, as_cmap=True) sns.heatmap(corr, mask=mask, cmap=cmap, vmax=.3, center=0, square=True, linewidth=.5, cbar_kws={'shrink':.5})
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter