71.md 851 字节
Newer Older
W
init  
wizardforcel 已提交
1 2
# seaborn.despine

L
Lingxu Meng 已提交
3 4
> 译者:[Modrisco](https://github.com/Modrisco)

W
init  
wizardforcel 已提交
5 6 7 8
```py
seaborn.despine(fig=None, ax=None, top=True, right=True, left=False, bottom=False, offset=None, trim=False)
```

L
Lingxu Meng 已提交
9
从图中移除顶部和右侧脊柱。
W
init  
wizardforcel 已提交
10 11

```py
L
Lingxu Meng 已提交
12
fig : matplotlib , 可选
W
init  
wizardforcel 已提交
13 14
```

L
Lingxu Meng 已提交
15
去除所有轴脊柱,默认使用当前数值。
W
init  
wizardforcel 已提交
16 17

```py
L
Lingxu Meng 已提交
18
ax : matplotlib , 可选
W
init  
wizardforcel 已提交
19 20
```

L
Lingxu Meng 已提交
21
去除特定的轴脊柱。
W
init  
wizardforcel 已提交
22 23

```py
L
Lingxu Meng 已提交
24
top, right, left, bottom : boolean, 可选
W
init  
wizardforcel 已提交
25 26
```

L
Lingxu Meng 已提交
27
如果为 True,去除脊柱。
W
init  
wizardforcel 已提交
28 29

```py
L
Lingxu Meng 已提交
30
offset : int or dict, 可选
W
init  
wizardforcel 已提交
31 32
```

L
Lingxu Meng 已提交
33
绝对距离(以磅为单位)应将脊椎移离轴线(负值向内移动脊柱)。 单个值适用于所有脊柱; 字典可用于设置每侧的偏移值。
W
init  
wizardforcel 已提交
34 35

```py
L
Lingxu Meng 已提交
36
trim : bool, 可选
W
init  
wizardforcel 已提交
37 38
```

W
wizardforcel 已提交
39
如果为 True,则将脊柱限制为每个非去除脊柱的轴上的最小和最大主刻度。
W
init  
wizardforcel 已提交
40

W
wizardforcel 已提交
41
返回值:None |
L
Lingxu Meng 已提交
42
| --- | --- |