class_docstr: Utility renderer using Matplotlib to render a grid of plots over the same (x, y) range.
  
  Args:
      nrows (int, optional): Number of rows of plots, default ``1``.
      ncols (int, optional): Number of columns of plots, default ``1``.
      figsize (tuple(float, float), optional): Figure size in inches, default ``(9, 9)``.
      show_frame (bool, optional): Whether to show frame and axes ticks, default ``True``.
      backend (str, optional): Matplotlib backend to use or ``None`` for default backend.
          Default ``None``.
      gridspec_kw (dict, optional): Gridspec keyword arguments to pass to ``plt.subplots``,
          default None.
code: def __init__(
      self,
      nrows: int = 1,
      ncols: int = 1,
      figsize: tuple[float, float] = (9, 9),
      show_frame: bool = True,
      backend: str | None = None,
      gridspec_kw: dict[str, Any] | None = None,
  ) -> None:
      if backend is not None:
          import matplotlib
  
          matplotlib.use(backend)
  
      kwargs: dict[str, Any] = dict(
          figsize=figsize, squeeze=False, sharex=True, sharey=True
      )
      if gridspec_kw is not None:
          kwargs["gridspec_kw"] = gridspec_kw
      else:
          kwargs["subplot_kw"] = dict(aspect="equal")
  
      self._fig, axes = plt.subplots(nrows, ncols, **kwargs)
      self._axes = axes.flatten()
      if not show_frame:
          for ax in self._axes:
              ax.axis("off")
  
      self._want_tight = True
  
imports: from __future__ import annotations
  from collections.abc import Sequence
  import io
  from typing import TYPE_CHECKING, Any, cast
  import matplotlib.collections
  import matplotlib.pyplot
  import numpy
  from contourpy import FillType, LineType
  from contourpy.convert import convert_filled, convert_lines
  from contourpy.enum_util import as_fill_type, as_line_type
  from contourpy.util.mpl_util import filled_to_mpl_paths, lines_to_mpl_paths
  from contourpy.util.renderer import Renderer
label_desc: Use image node_id 1 to create a new MplRenderer object from inherited base classes: Renderer with example: obj = MplRenderer(nrows, ncols, figsize, show_frame, backend, gridspec_kw)