def __call__(self, x):
if len(x) == <NUM_LIT:0>:<EOL><INDENT>return []<EOL><DEDENT>if self.base == <NUM_LIT:10>:<EOL><INDENT>xmin = int(np.floor(np.log10(np.min(x))))<EOL>xmax = int(np.ceil(np.log10(np.max(x))))<EOL>emin, emax = self.exponent_limits<EOL>all_multiples = np.all(<EOL>[np.log10(num).is_integer() for num in x])<EOL>if same_log10_order_of_magnitude(x):<EOL><INDENT>f = mpl_format()<EOL>f.formatter.set_powerlimits((emin, emax))<EOL>return f(x)<EOL><DEDENT>elif all_multiples and (xmin <= emin or xmax >= emax):<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT>labels = [fmt.format(num) for num in x]<EOL>return self._tidyup_labels(labels)<EOL>
Format a sequence of inputs

Parameters
----------
x : array
    Input

Returns
-------
out : list
    List of strings.