code: def _get_xlim(lines):
      left, right = np.inf, -np.inf
      for l in lines:
          x = l.get_xdata(orig=False)
          left = min(np.nanmin(x), left)
          right = max(np.nanmax(x), right)
      return left, right
  
file_path: catboost/contrib/python/pandas/py2/pandas/plotting/_tools.py
imports: from __future__ import division
  from math import ceil
  import warnings
  import numpy
  from pandas.compat import range
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
label_desc: Use image node_id 9 for calling a global function with example usage: _get_xlim(lines) and returns: left,  right