def __init__(self, locator, tz=None, defaultfmt='%Y-%m-%d'):
    '\n        Autoformat the date labels.  The default format is the one to use\n        if none of the values in ``self.scaled`` are greater than the unit\n        returned by ``locator._get_unit()``.\n        '
    self._locator = locator
    self._tz = tz
    self.defaultfmt = defaultfmt
    self._formatter = DateFormatter(self.defaultfmt, tz)
    self.scaled = {DAYS_PER_YEAR: '%Y', DAYS_PER_MONTH: '%b %Y', 1.0: '%b %d %Y', (1.0 / HOURS_PER_DAY): '%H:%M:%S', (1.0 / MINUTES_PER_DAY): '%H:%M:%S.%f'}
Autoformat the date labels.  The default format is the one to use
if none of the values in ``self.scaled`` are greater than the unit
returned by ``locator._get_unit()``.
def __init__(self, locator, tz=None, defaultfmt='%Y-%m-%d'):
    '\n        Autoformat the date labels.  The default format is the one to use\n        if none of the values in ``self.scaled`` are greater than the unit\n        returned by ``locator._get_unit()``.\n        '
    self._locator = locator
    self._tz = tz
    self.defaultfmt = defaultfmt
    self._formatter = DateFormatter(self.defaultfmt, tz)
    self.scaled = {DAYS_PER_YEAR: '%Y', DAYS_PER_MONTH: '%b %Y', 1.0: '%b %d %Y', (1.0 / HOURS_PER_DAY): '%H:%M:%S', (1.0 / MINUTES_PER_DAY): '%H:%M:%S.%f'}