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

3

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

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

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

1个回答

0

在绘制图表之前,我能够通过更改matplotlib的默认图例字体大小来改变字体大小。

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接