问题描述
我想在seaborn.heatmap中更改着色器刻度的大小。我无法在文档中找到某些内容。有人可以帮我吗?
这是我的代码
fig,ax = plt.subplots(figsize=(15,15))
ax = sns.heatmap(df_heatmap,linewidths=0.1,annot=True,ax=ax,cbar_kws={'label': 'Rel. $NV^-$ population'})
ax.figure.axes[-1].yaxis.label.set_size(15)
ax.tick_params(labelsize=10)
plt.xlabel("Probe laser duration [$\mu s$]",size=20)
plt.ylabel("Threshold",size=20)
plt.yticks(rotation=0)
plt.xticks(rotation=90)
非常感谢您的帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)