I wanted to annot only values greater than 0.4 on my seaborn heatmap.
Here is my code:
sns.set(font_scale=0.6)
sns.set(font_scale=0.6)
ax= sns.heatmap(corr, mask=mask, cmap=cmap, vmin=-1, vmax=+1, center=0,
square=True, linewidths=.1, cbar_kws={"shrink": .82},annot=True,
fmt='.1',annot_kws={"size":7})
ax.set_xticklabels(ax.get_xticklabels(), rotation=60)
This is what I get: enter image description here
Thank you