class_docstr: Base class for all plot objects.
class_docstr_tok: ["Base","class","for","all","plot","objects","."]
code: def _savefig(self, *args: Any, **kwargs: Any) -> bytes:
      with BytesIO() as buffer:
          fig = self.plot
          fig.savefig(buffer, *args, **kwargs)
          data = buffer.getvalue()
          return data
  
imports: from abc import ABC, abstractmethod
  from typing import Generator, Any
  from io import BytesIO
  import contextlib
  import warnings
  import base64
  import textwrap
  from pandas.plotting import register_matplotlib_converters
  import matplotlib
  import matplotlib.pyplot
label_desc: Use image node_id 6 for calling the Figure obj's underlying member method code with example usage: obj._savefig() and returns: data