Heatmap block float numbers not displaying
Hi , Thank you for such a beautiful lecture and informational course !!
I was hoping if you could guide me as to why I am unable to view the floating numbers in the block of colors for the heatmap .
Here is the code I had used to run the same :
plt.figure(figsize=(12, 9))
s = sns.heatmap(data.corr(),
annot=True,
cmap='RdBu',
vmin = -1,
vmax = 1,
fmt='.2f')
s.set_yticklabels(s.get_yticklabels(), rotation=0, fontsize=12)
s.set_xticklabels(s.get_xticklabels(), rotation=90, fontsize=12)
plt.title('Correlation Heatmap')
plt.show()
1 answers ( 0 marked as helpful)
