add numbers to the correlation heatmap

You need to pass annot=True in the sns.heatmap

sns.heatmap(corr_ten_yr_bond_p4, annot=True, mask=mask, cmap=cmap, 
            square=True,
            linewidth=.5, cbar_kws={"shrink": .5}, ax=ax)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top