class_docstr: Lag Matrix plot.
class_docstr_tok: ["Lag","Matrix","plot","."]
code: def _plot(self) -> plt.figure:
      ncols = self.ncols
      nrows = int(np.ceil(self.lags.shape[1] / ncols))
      fig = plt.figure(
          figsize=(self.cellsize[0] * ncols, self.cellsize[1] * nrows)
      )
      layout = (nrows, ncols)
  
      for ix, col in enumerate(self.lags.columns):
          ix_row = ix // ncols
          ix_col = ix % ncols
          ax = plt.subplot2grid(layout, (ix_row, ix_col))
          ax.plot(
              self.original,
              self.lags[col],
              marker="o",
              markersize=1,
              linestyle="None",
              color=self.PALETTE[0],
          )
          if ix_col > 0:
              ax.tick_params(
                  axis="y", which="both", labelleft=False, left=False
              )
          if ix_row > 0:
              ax.tick_params(
                  axis="x",
                  which="both",
                  labelbottom=False,
                  bottom=False,
              )
          else:
              ax.tick_params(
                  axis="x",
                  which="both",
                  labelbottom=False,
                  bottom=False,
                  labeltop=True,
                  top=True,
              )
          ax.text(
              0.5,
              0.5,
              f"{col}: {self.corr[col]:.3f}",
              transform=ax.transAxes,
              horizontalalignment="center",
              verticalalignment="center",
              bbox=dict(facecolor="white", alpha=0.75, linewidth=0),
          )
      plt.tight_layout()
      plt.close(fig)
      return fig
  
file_path: tslumen/tslumen/plot/static/correlation.py
imports: from typing import Tuple, Optional
  import warnings
  from dataclasses import dataclass
  import numpy
  import pandas
  from scipy.stats import gaussian_kde
  import matplotlib
  import matplotlib.pyplot
  from tslumen.plot.static.base import Figure
label_desc: Use image node_id 1 for calling the LagMatrix obj's underlying member method code with example usage: obj._plot() and returns: fig