def make_histograms(lengths, binwidth=10):
 min_len = min(lengths)
 max_len = max(lengths)
 floor = ((min_len / binwidth) * binwidth)
 ceil = (((max_len / binwidth) + 2) * binwidth)
 bins = np.arange(floor, ceil, binwidth)
 (hist, bin_edges) = np.histogram(lengths, bins)
 return (hist, bin_edges)

def make_histograms ( lengths , binwidth = 10 ) : min_len = min ( lengths ) max_len = max ( lengths ) floor = ( ( min_len / binwidth ) * binwidth ) ceil = ( ( ( max_len / binwidth ) + 2 ) * binwidth ) bins = np . arange ( floor , ceil , binwidth ) ( hist , bin_edges ) = np . histogram ( lengths , bins ) return ( hist , bin_edges )
makes histogram data for pre and post lengths .