【发布时间】:2021-11-20 05:08:29
【问题描述】:
fig, axes = plt.subplots(nrows=1, ncols=3, sharex=False, sharey=False)
df_russel_fee.hist(column='fee', by='fiscal_year',xlabelsize=10,figsize=(0,0),bins=50,ax=axes)
plt.suptitle('Russel fee histogram', x=0.5, y=0.99, ha='center', fontsize='xx-large')
fig.text(0.5, 0.04, 'value', ha='center',fontsize='xx-large')
fig.text(0, 0.5, 'frequency', va='center', rotation='vertical',fontsize='xx-large')
fig = plt.gcf()
fig.set_size_inches(15,6)
【问题讨论】:
-
您可以使用参数
bins指定 bin 的总数或特定的 bin 边界。当前在您的代码中设置为 50。尝试将其设置为更低的值,例如 30。
标签: python pandas matplotlib