使swarmplot点变大

2024-09-25 18:14:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我想把我的swarmplot上的数据点放大。我的密码是:

sns.swarmplot(x="Heart", y="FirstPersonPronouns", hue="Speech", data=df)
sns.set_context("notebook", font_scale=1.8)

我试过分散注意力但是

^{pr2}$

Tags: 数据密码dfdatacontexthuespeechfont
1条回答
网友
1楼 · 发布于 2024-09-25 18:14:06

从swarmplot docstring:

Signature: seaborn.swarmplot(x=None, y=None, hue=None, data=None,
order=None, hue_order=None, split=False, orient=None, color=None, 
palette=None, size=5, edgecolor='gray', linewidth=0, ax=None,
**kwargs)
Docstring: Draw a categorical scatterplot with non-overlapping points.     
[snip]


Parameters
      
x, y, hue : names of variables in ``data`` or vector data, optional
    Inputs for plotting long-form data. See examples for interpretation. 
data : DataFrame, array, or list of arrays, optional
    Dataset for plotting. If ``x`` and ``y`` are absent, this is
    interpreted as wide-form. Otherwise it is expected to be long-form. [snip]

然后:

^{pr2}$

相关问题 更多 >