'Return the label for time x at position pos'

def __call__(self, x, pos=0):

    ind = int(np.round(x))
    if ((ind >= len(self.dates)) or (ind < 0)):
        return ''
    return self.dates[ind].strftime(self.fmt)
