def consecutiveSlopes(ys, xs):
    """
    Get slopes of consecutive data points.
    """
    slopes = []
    samplePeriod  = xs[1]-xs[0]
    for i in range(len(ys)-1):
        slope = (ys[i+1]-ys[i])/(samplePeriod)
        slopes.append(slope)
    return slopes