def xlim(*args, **kwargs):
 ax = gca()
 if ((not args) and (not kwargs)):
  return ax.get_xlim()
 ret = ax.set_xlim(*args, **kwargs)
 return ret

def xlim ( * args , ** kwargs ) : ax = gca ( ) if ( ( not args ) and ( not kwargs ) ) : return ax . get_xlim ( ) ret = ax . set_xlim ( * args , ** kwargs ) return ret
get or set the *x* limits of the current axes .