def __call__(self, x, pos=None):
_, dmax = self.axis.get_data_interval()<EOL>vmin, vmax = self.axis.get_view_interval()<EOL>if self.lag and x >= dmax * <NUM_LIT:0.5>:<EOL><INDENT>if x > dmax:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>value = np.abs(x - dmax)<EOL>sign = '<STR_LIT:->'<EOL><DEDENT>else:<EOL><INDENT>value = x<EOL>sign = '<STR_LIT>'<EOL><DEDENT>if self.unit == '<STR_LIT:s>':<EOL><INDENT>s = '<STR_LIT>'.format(value)<EOL><DEDENT>elif self.unit == '<STR_LIT>':<EOL><INDENT>s = '<STR_LIT>'.format(value * <NUM_LIT:1000>)<EOL><DEDENT>else:<EOL><INDENT>if vmax - vmin > <NUM_LIT>:<EOL><INDENT>s = '<STR_LIT>'.format(int(value / <NUM_LIT>),<EOL>int(np.mod(value / <NUM_LIT>, <NUM_LIT>)),<EOL>int(np.mod(value, <NUM_LIT>)))<EOL><DEDENT>elif vmax - vmin > <NUM_LIT>:<EOL><INDENT>s = '<STR_LIT>'.format(int(value / <NUM_LIT>),<EOL>int(np.mod(value, <NUM_LIT>)))<EOL><DEDENT>else:<EOL><INDENT>s = '<STR_LIT>'.format(value)<EOL><DEDENT><DEDENT>return '<STR_LIT>'.format(sign, s)<EOL>
Return the time format as pos