class_docstr: Base class for all plot objects.
class_docstr_tok: ["Base","class","for","all","plot","objects","."]
docstr: Util function for wrapping text -- useful for fitting large strings in small plots.
  A wrapper of ``textwrap``'s ``wrap`` function, where ``width`` is configured centrally in
  this class and thus inherited by all subclasses.
  
  Args:
      text (str): The text to wrap.
  
  Returns:
      str: The wrapped text.
docstr_tok: ["Util","function","for","wrapping","text","--","useful","for","fitting","large","strings","in","small","plots",".","A","wrapper","of","``","textwrap","``","'s","``","wrap","``","function",",","where","``","width","``","is","configured","centrally","in","this","class","and","thus","inherited","by","all","subclasses",".","Args",":","text","(","str",")",":","The","text","to","wrap",".","Returns",":","str",":","The","wrapped","text","."]
code: def wrap(self, text: str) -> str:
      """Util function for wrapping text -- useful for fitting large strings in small plots.
      A wrapper of ``textwrap``'s ``wrap`` function, where ``width`` is configured centrally in
      this class and thus inherited by all subclasses.
  
      Args:
          text (str): The text to wrap.
  
      Returns:
          str: The wrapped text.
      """
      return "\n".join(textwrap.wrap(text, width=self._wrap_width))
  
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 2 for calling the Figure obj's underlying member method code with example usage: obj.wrap(text) and returns: str