访问 seaborn distplot 中的 bin 计数
access to bin counts in seaborn distplot
在 pyplot 的 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 只有 returns 一个轴对象。
最后,我想在直方图的顶部并列一个线图,它对 bin 中的计数求和。
为了完整起见,numpy.histogram
正是我要找的!
在 pyplot 的 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 只有 returns 一个轴对象。
最后,我想在直方图的顶部并列一个线图,它对 bin 中的计数求和。
为了完整起见,numpy.histogram
正是我要找的!