seaborn heatmap parameters

Solutions on MaxInterview for seaborn heatmap parameters by the best coders in the world

showing results for - "seaborn heatmap parameters"
Filippo
22 Aug 2018
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()