def METHOD_NAME(self, values, scale, spacing):
    """Reimplemented from PlotItem to adjust to the range"""
    ret = []
    if not values:
        return []
    if spacing >= 31622400:  # 366 days
        fmt = "%Y"
    elif spacing >= 2678400:  # 31 days
        fmt = "%m.%Y"
    elif spacing >= 86400:  # = 1 day
        fmt = "%d.%m.%y"
    elif spacing >= 3600:  # 1 h
        fmt = "%d.%m. %#H°°"
    elif spacing >= 60:  # 1 m
        fmt = "%d.%m. %H:%M"
    elif spacing >= 1:  # 1s
        fmt = "%H:%M:%S"
    else:
        # less than 2s (show microseconds)
        fmt = '[+%fus]'  # explicitly relative to last second
    for x in values:
        try:
            t = datetime.fromtimestamp(x)
            ret.append(t.strftime(fmt))
        except ValueError:  # Windows can't handle dates before 1970
            ret.append('')
    return ret