class_docstr: NOTE: Removed figsize and dynamix_x_axis.
class_docstr_tok: ["NOTE",":","Removed","figsize","and","dynamix_x_axis","."]
docstr: Set matplotlib window properties
  Args:
      fig: matplotlib Figure
      num_of_log_groups: number of log groups
docstr_tok: ["Set","matplotlib","window","properties","Args",":","fig",":","matplotlib","Figure","num_of_log_groups",":","number","of","log","groups"]
code: def _default_before_plots(
      self, fig: plt.Figure, axes: np.ndarray, num_of_log_groups: int
  ) -> None:
      """Set matplotlib window properties
      Args:
          fig: matplotlib Figure
          num_of_log_groups: number of log groups
      """
      clear_output(wait=True)
      figsize_x = self.max_cols * self.cell_size[0]
      figsize_y = (
          (num_of_log_groups + 1) // self.max_cols + 1
      ) * self.cell_size[1]
      fig.set_size_inches(figsize_x, figsize_y)
      if num_of_log_groups < axes.size:
          for idx, ax in enumerate(axes[-1]):
              if (
                  idx
                  >= (num_of_log_groups + len(self.extra_plots))
                  % self.max_cols
              ):
                  ax.set_visible(False)
  
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 4 for calling the MatplotlibPlot obj's underlying member method code with example usage: obj._default_before_plots(fig, axes, num_of_log_groups) without return types