class_docstr: NOTE: Removed figsize and dynamix_x_axis.
class_docstr_tok: ["NOTE",":","Removed","figsize","and","dynamix_x_axis","."]
docstr: Args:
      cell_size: size of one chart
      max_cols: maximal number of charts in one row
      max_epoch: maximum epoch on x axis
      skip_first: number of first steps to skip
      extra_plots: extra charts functions
      figpath path: to save figure
      after_subplot: function which will be called after every subplot
      before_plots: function which will be called before all subplots
      after_plots: function which will be called after all subplots
docstr_tok: ["Args",":","cell_size",":","size","of","one","chart","max_cols",":","maximal","number","of","charts","in","one","row","max_epoch",":","maximum","epoch","on","x","axis","skip_first",":","number","of","first","steps","to","skip","extra_plots",":","extra","charts","functions","figpath","path",":","to","save","figure","after_subplot",":","function","which","will","be","called","after","every","subplot","before_plots",":","function","which","will","be","called","before","all","subplots","after_plots",":","function","which","will","be","called","after","all","subplots"]
code: def __init__(
      self,
      cell_size: Tuple[int, int] = (6, 4),
      max_cols: int = 2,
      max_epoch: int = None,
      skip_first: int = 2,
      extra_plots: List[Callable[[MainLogger], None]] = [],
      figpath: Optional[str] = None,
      after_subplot: Optional[
          Callable[[plt.Axes, str, str], None]
      ] = None,
      before_plots: Optional[
          Callable[[plt.Figure, np.ndarray, int], None]
      ] = None,
      after_plots: Optional[Callable[[plt.Figure], None]] = None,
  ):
      """
      Args:
          cell_size: size of one chart
          max_cols: maximal number of charts in one row
          max_epoch: maximum epoch on x axis
          skip_first: number of first steps to skip
          extra_plots: extra charts functions
          figpath path: to save figure
          after_subplot: function which will be called after every subplot
          before_plots: function which will be called before all subplots
          after_plots: function which will be called after all subplots
      """
      self.cell_size = cell_size
      self.max_cols = max_cols
      self.skip_first = skip_first  # think about it
      self.extra_plots = extra_plots
      self.max_epoch = max_epoch
      self.figpath = figpath
      self.file_idx = 0  # now only for saving files
      self._after_subplot = (
          after_subplot
          if after_subplot
          else self._default_after_subplot
      )
      self._before_plots = (
          before_plots if before_plots else self._default_before_plots
      )
      self._after_plots = (
          after_plots if after_plots else self._default_after_plots
      )
  
file_path: livelossplot/livelossplot/outputs/matplotlib_plot.py
imports: import math
  from typing import Tuple, List, Dict, Optional, Callable
  import warnings
  import numpy
  import matplotlib
  import matplotlib.pyplot
  from IPython.display import clear_output
  from livelossplot.main_logger import MainLogger, LogItem
  from livelossplot.outputs.base_output import BaseOutput
label_desc: Use image node_id 1 to create a new MatplotlibPlot object from inherited base classes: BaseOutput with example: obj = MatplotlibPlot(cell_size, max_cols, max_epoch, skip_first, extra_plots, figpath, after_subplot, before_plots, after_plots)