def is_numlike(x):
if iterable(x):<EOL><INDENT>for thisx in x:<EOL><INDENT>return is_numlike(thisx)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return is_numlike(x)<EOL><DEDENT>
The matplotlib datalim, autoscaling, locators etc work with
scalars which are the units converted to floats given the
current unit.  The converter may be passed these floats, or
arrays of them, even when units are set.  Derived conversion
interfaces may opt to pass plain-ol unitless numbers through
the conversion interface and this is a helper function for
them.