Question:
I have a range of positive integers ranging from 250-1200, with a normal distribution. I have found the answer to creating bins of equal density (Matplotlib: How to make a histogram with bins of equal area?). What I am actually looking for is to be able to retrieve the upper and lower boundaries of each bin. Is there a library/function that exists for this? or can this information be pulled out from matplotlib?Answer:
Let’s take a look at the code provided in the question you linked:bins
is actually giving you the edges of each bin as you can read in the docs of hist
function:
If you have better answer, please add a comment about this, thank you!