def range_count(start, stop, count):
    """Generate a list.

    Use the given start stop and count with linear spacing
    e.g. range_count(1, 3, 5) = [1., 1.5, 2., 2.5, 3.]
    """
    step = (stop - start) / float(count - 1)
    return [start + i * step for i in range(count)]