code: def lag_plot(series, lag=1, ax=None, **kwds):
      """Lag plot for time series.
  
      Parameters
      ----------
      series : Time series
      lag : lag of the scatter plot, default 1
      ax : Matplotlib axis object, optional
      kwds : Matplotlib scatter method keyword arguments, optional
  
      Returns
      -------
      ax: Matplotlib axis object
      """
      import matplotlib.pyplot as plt
  
      # workaround because `c='b'` is hardcoded in matplotlibs scatter method
      kwds.setdefault("c", plt.rcParams["patch.facecolor"])
  
      data = series.values
      y1 = data[:-lag]
      y2 = data[lag:]
      if ax is None:
          ax = plt.gca()
      ax.set_xlabel("y(t)")
      ax.set_ylabel("y(t + {lag})".format(lag=lag))
      ax.scatter(y1, y2, **kwds)
      return ax
  
file_path: catboost/contrib/python/pandas/py2/pandas/plotting/_misc.py
imports: from __future__ import division
  import numpy
  from pandas.compat import lmap, lrange, range, zip
  from pandas.util._decorators import deprecate_kwarg
  from pandas.core.dtypes.missing import notna
  from pandas.io.formats.printing import pprint_thing
  from pandas.plotting._style import _get_standard_colors
  from pandas.plotting._tools import _set_ticks_props, _subplots
label_desc: Use image node_id 7 for calling a global function with example usage: lag_plot(series, lag, ax) and returns: ax