class_docstr: This class implements the functionalities to use Matplotlib with SymPy
  plotting functions.
class_docstr_tok: ["This","class","implements","the","functionalities","to","use","Matplotlib","with","SymPy","plotting","functions","."]
code: def __init__(self, *series, **kwargs):
      super().__init__(*series, **kwargs)
      self.matplotlib = import_module(
          "matplotlib",
          import_kwargs={"fromlist": ["pyplot", "cm", "collections"]},
          min_module_version="1.1.0",
          catch=(RuntimeError,),
      )
      self.plt = self.matplotlib.pyplot
      self.cm = self.matplotlib.cm
      self.LineCollection = self.matplotlib.collections.LineCollection
      self.aspect = kwargs.get("aspect_ratio", "auto")
      if self.aspect != "auto":
          self.aspect = float(self.aspect[1]) / self.aspect[0]
      # PlotGrid can provide its figure and axes to be populated with
      # the data from the series.
      self._plotgrid_fig = kwargs.pop("fig", None)
      self._plotgrid_ax = kwargs.pop("ax", None)
  
file_path: sympy/sympy/plotting/backends/matplotlibbackend/matplotlib.py
imports: from collections.abc import Callable
  from sympy.core.basic import Basic
  from sympy.external import import_module
  import sympy.plotting.backends.base_backend
  from sympy.printing.latex import latex
label_desc: Use image node_id 1 to create a new MatplotlibBackend object from inherited base classes: base_backend with example: obj = MatplotlibBackend()