Python 如何减少sns.jointplot()中的数据点大小?

Python 如何减少sns.jointplot()中的数据点大小?,python,matplotlib,plot,seaborn,Python,Matplotlib,Plot,Seaborn,我有下面的代码绘制一个seaborn连接图。但是,我似乎不知道如何更改数据点的大小。我需要小一点。我尝试了关键字s,这似乎适用于其他seaborn绘图,但在这里我得到了错误: TypeError: regplot() got an unexpected keyword argument 's' 有人知道如何调整吗 g = plt.figure(figsize=(12, 10)) g = (sns.jointplot("age", "months_as_customer",

我有下面的代码绘制一个seaborn连接图。但是,我似乎不知道如何更改数据点的大小。我需要小一点。我尝试了关键字
s
,这似乎适用于其他seaborn绘图,但在这里我得到了错误:

TypeError: regplot() got an unexpected keyword argument 's'
有人知道如何调整吗

g = plt.figure(figsize=(12, 10))

g = (sns.jointplot("age", "months_as_customer",
                   data=matrix_ks.to_pandas(), color="green", s=0.2, kind="reg")
                  .set_axis_labels("Age", "Months as Customer",  fontsize=15))

#g = g.annotate(fontsize=18)
plt.title("Joint Density Estime - Age and Months as Customer", pad= 80, fontsize=15)


plt.show()

由于将
kind
定义为regplot,因此需要通过参数
scatter\u kws
传递散点图参数。您可以查看以查看更多详细信息

df = sns.load_dataset('tips')
sns.jointplot('total_bill', 'tip', df, kind='reg', scatter_kws={'s': 1})