access to bin counts in seaborn distplot

点点圈 提交于 2019-12-08 19:14:12

问题


In pyplot's hist() function, we are able to access the values of the histogram bins (through the return n); is it possible to access this same information from Seaborn's distplot? Seaborn only returns an axis object.

Ultimately, I'd like juxtapose a line plot on top of the histogram which sums the counts in the bins.


回答1:


For completeness, numpy.histogram is what I was looking for!



来源:https://stackoverflow.com/questions/31727280/access-to-bin-counts-in-seaborn-distplot

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