Change bins on y-axis with seaborn

你。 提交于 2020-01-06 05:27:12

问题


I try to work out some way to plot data as a histogram. Now I realized that the numbers on the y-axis don't represent the actual counts of data points in my file. Is there a way I can change that?

My code looks like this

sns.set_style("white")
plt.figure(figsize=(12,10))
plt.xlabel('a', fontsize=18) 
plt.ylabel('Frequency', fontsize=18)

plt.title ('Title of Graph', fontsize=22)



sns.distplot(st,bins='fd', kde=False, fit_kws={"color":"red"}, fit=sp.stats.norm, hist_kws={"rwidth":0.75, 'range':(0,1), 'edgecolor':'black', 'alpha':1.0}, axlabel='Ratio ')

Thanks for any advice.

来源:https://stackoverflow.com/questions/48424096/change-bins-on-y-axis-with-seaborn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!