def __call__(self, x, pos=None):
viewlim = self.axis.get_view_interval()<EOL>loglim = numpy.log10(viewlim)<EOL>majticks = numpy.arange(ceil(loglim[<NUM_LIT:0>]), floor(ceil(loglim[<NUM_LIT:1>])),<EOL>dtype=int)<EOL>nticks = majticks.size<EOL>halfdecade = nticks == <NUM_LIT:1> and modf(loglim[<NUM_LIT:0>])[<NUM_LIT:0>] < <NUM_LIT><EOL>if nticks >= <NUM_LIT:2> or (halfdecade and not is_decade(x * <NUM_LIT:2>, self._base)):<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>return super(MinorLogFormatterMathtext, self).__call__(x, pos=pos)<EOL>
Format the minor tick label if less than 2 visible major ticks.