小编Nov*_*ice的帖子

获取用于 seaborn 绘图的 bin 宽度

在 Seaborn 中进行 distplot 时,如何找出使用的 bin 宽度?我有两个数据集我想共享 bin widhts,但不知道如何返回用于第一个数据集的默认值。对于下面的简单示例,我将如何找出使用的 bin 宽度?

import nump as np
import seaborn as sns
f, axs = plt.subplots(1,1)
distribution=np.random.rand(1000)
sns.distplot(distribution, hist=True , kde_kws={"shade": True},ax=axs)
Run Code Online (Sandbox Code Playgroud)

python seaborn

4
推荐指数
1
解决办法
2357
查看次数

标签 统计

python ×1

seaborn ×1