Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

access to bin counts in seaborn distplot

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.

like image 755
Constantino Avatar asked Jul 30 '15 14:07

Constantino


1 Answers

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

like image 194
Constantino Avatar answered Nov 16 '22 00:11

Constantino