

def date_breaks(width):
    '\n    "Regularly spaced dates."\n\n    width:\n        an interval specification. must be one of [minute, hour, day, week, month, year]\n    usage:\n        date_breaks(width = \'1 year\')\n        date_breaks(width = \'6 weeks\')\n        date_breaks(\'months\')\n    '
    (period, units) = parse_break_str(width)
    Locator = LOCATORS.get(units)
    locator = Locator(interval=period)
    return locator

dataset/ETHPy150Open yhat/ggplot/ggplot/utils/date_breaks.py date_breaks/original