def cdf2(values, bins):
    '\n    # # Exclusively for area_function which needs to be unnormalized\n    (statistical) cumulative distribution function\n    Value at b is total amount below b.\n    CDF is invariante to binning\n\n    Plot versus bins[:-1]\n    Not normalized to 1\n    '
    if hasattr(bins, '__getitem__'):
        range = (np.nanmin(bins), np.nanmax(bins))
    else:
        range = None
    (h, bins) = np.histogram(values, bins=bins, range=range, density=False)
    c = np.cumsum(h).astype(float)
    return (np.append(0.0, c), bins)
# # Exclusively for area_function which needs to be unnormalized
(statistical) cumulative distribution function
Value at b is total amount below b.
CDF is invariante to binning

Plot versus bins[:-1]
Not normalized to 1
def cdf2(values, bins):
    '\n    # # Exclusively for area_function which needs to be unnormalized\n    (statistical) cumulative distribution function\n    Value at b is total amount below b.\n    CDF is invariante to binning\n\n    Plot versus bins[:-1]\n    Not normalized to 1\n    '
    if hasattr(bins, '__getitem__'):
        range = (np.nanmin(bins), np.nanmax(bins))
    else:
        range = None
    (h, bins) = np.histogram(values, bins=bins, range=range, density=False)
    c = np.cumsum(h).astype(float)
    return (np.append(0.0, c), bins)