1# seaborn heatmap best parameter
2plt.figure(figsize=(20,8))
3sns.heatmap(corr, vmax=1, vmin=-1, center=0,
4 linewidth=.5,square=True, annot = True,
5 annot_kws = {'size':8},fmt='.1f', cmap='BrBG_r', ax=ax1, # ax: use this when using subplot
6 cbar_kws = dict(use_gridspec=False,location="top", shrink=0.9)) # cbar_kws: for positioning cbar and "shrink" for reducing cbar size
7plt.title('Correlation')
8plt.show()