0
ヒートマップカラーバーのフォントサイズを変更したかったのですが、Seaborn、カラーバーのフォントサイズを変更
次は私のコードです:
import seaborn as sns
import matplotlib.pyplot as plt
from numpy import arange
x = arange(25).reshape(5, 5)
cmap = sns.diverging_palette(220, 20, sep=20, as_cmap=True)
ax = sns.heatmap(x, cmap=cmap)
plt.show()
私はplt.tick_params(axis='both', labelsize=20)
と目盛りラベルを変更することができました。ただし、カラーバーのフォントサイズは変更されません。 これを行う方法はありますか?