Bin size in Matplotlib (Histogram)
I guess the easy way would be to calculate the minimum and maximum of the data you have,  then   calculate L = max - min.  Then you divide L by the desired bin width (I'm assuming this is what you mean by bin size) and use the ceiling of this value as the number of bins.
I'm using matplotlib to make a histogram.
Is there any way to manually set the size of the bins as opposed to the number of bins?