My question is how to change the size of font in seaborn using correlation matrix I don't know why somehow the font is too large for me
if you already have the correlation values in your data, you can use a heatmap and set up the size with "annot_kws", for example here setting it to 8.
sns.heatmap(data, vmin=data.values.min(), vmax=1, square=True,
linewidths=0.1, annot=True, annot_kws={"size":8})
and it would look like this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With