|
From: Antony L. <ant...@be...> - 2014-05-29 21:15:00
|
Hi, When histogramming integer data, is there an easy way to tell matplotlib that I want a certain number of bins, and each bin to cover an equal number of integers (except possibly the last one)? (in order to avoid having some bins higher than others merely because they cover more integers) I know I can pass in an explicit bins array (something like list(range(min, max, (max-min)//n)) + max) but I was hoping for something simpler, like hist(data, nbins=42, equal_integer_coverage=True). Best, Antony |