Skip to main content
 首页 » 编程设计

python之distplot() 得到了一个意外的关键字参数 'figsize'

2025年01月19日10lexus

<分区>

我正在尝试更改正在构建的直方图的图形大小。 我收到错误:

distplot() got an unexpected keyword argument 'figsize' 

我尝试运行的代码是这样的:

sns.distplot(MSoft['pct_change'].dropna(), bins=100, color='magenta', figsize=(20,8))