code: def plot_acf_multiple(ys, lags=20):
      """ """
      from statsmodels.tsa.stattools import acf
  
      # hack
      old_size = mpl.rcParams["font.size"]
      mpl.rcParams["font.size"] = 8
  
      plt.figure(figsize=(10, 10))
      xs = np.arange(lags + 1)
  
      acorr = np.apply_along_axis(lambda x: acf(x, nlags=lags), 0, ys)
  
      k = acorr.shape[1]
      for i in range(k):
          ax = plt.subplot(k, 1, i + 1)
          ax.vlines(xs, [0], acorr[:, i])
  
          ax.axhline(0, color="k")
          ax.set_ylim([-1, 1])
  
          # hack?
          ax.set_xlim([-1, xs[-1] + 1])
  
      mpl.rcParams["font.size"] = old_size
  
file_path: statsmodels/statsmodels/examples/ex_pandas.py
imports: from statsmodels.compat.pandas import frequencies
  from datetime import datetime
  import matplotlib
  import matplotlib.pyplot
  import numpy
  from pandas import DataFrame, Series
  import statsmodels.api
  import statsmodels.tsa.api
  from statsmodels.tsa.arima_process import arma_generate_sample
label_desc: Use image node_id 1 for calling a global function with example usage: plot_acf_multiple(ys, lags) without return types