python - 如何更改seaborn jointplot中注释的字体大小?

我正在使用 - 制作带有回归线的联合图 -

sns.jointplot(xdata,ydata,kind='reg', order=2,ylim=[-1,1],xlim=[-1,1],annot_kws={"loc": 4})

我可以使用 annot_kws 更改位置,但不能更改字体大小。如何更改字体大小?

最佳答案

在制作绘图之前,我可以通过更改 matplotlib 的默认图例字体大小来更改字体大小。

matplotlib.rc("legend", fontsize=20)
sns.jointplot(xdata,ydata,kind='reg', order=2,ylim=[-1,1],xlim=[-1,1],annot_kws={"loc": 4})

https://stackoverflow.com/questions/39039000/

相关文章:

dns - 如何让 DNS 从本地主机解析与从远程主机解析相同的内容?

android - 使用带参数的字符串资源 (strings.xml) 时出现问题

java - 使用 WebSecurityConfigurerAdapter 而不是 WebMvcC

r - 无法加载互联网例程

android - Titanium SDK 5.4.0.GA 在 Android 平台的控制台上显

git - bitbucket - 看不到 merge 分支的提交

jquery - ng2-charts 实时数据动画

android - 滚动距离 - 无障碍服务 ACTION_SCROLL_FORWARD?

sql - Firebase 与 Backendless

android - 构建android源代码(AOSP)问题