def normalize_in_range(mylist, min_value, max_value):
    normlist = []
    max_in_list = numpy.max(mylist)
    effective_range = max_value - min_value
    for d in mylist:
        normlist.append(min_value + effective_range*(d/float(max_in_list)))
    return normlist
Rescales all the values of an array to be in the range (min_value, max_value).
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/tools/plotTools.py/normalize_in_range