def get_regular_ticks(v, interval):
    ' Returns regular tick intervals.\n    '
    f = interp1d(v, list(range(len(v))))
    begin = (int((v[0] / interval)) * interval)
    end = v[(- 1)]
    tick_labels = np.arange(begin, end, interval)
    ticks = f(tick_labels)
    return (ticks, tick_labels)
Returns regular tick intervals.
def get_regular_ticks(v, interval):
    ' \n    '
    f = interp1d(v, list(range(len(v))))
    begin = (int((v[0] / interval)) * interval)
    end = v[(- 1)]
    tick_labels = np.arange(begin, end, interval)
    ticks = f(tick_labels)
    return (ticks, tick_labels)