class_docstr: A cell is a `.Rectangle` with some associated `.Text`.
  
  As a user, you'll most likely not creates cells yourself. Instead, you
  should use either the `~matplotlib.table.table` factory function or
  `.Table.add_cell`.
class_docstr_tok: ["A","cell","is","a","`",".Rectangle","`","with","some","associated","`",".Text","`",".","As","a","user",",","you","'ll","most","likely","not","creates","cells","yourself",".","Instead",",","you","should","use","either","the","`","~matplotlib.table.table","`","factory","function","or","`",".Table.add_cell","`","."]
docstr: Return the text bounds as *(x, y, width, height)* in table coordinates.
docstr_tok: ["Return","the","text","bounds","as","*","(","x",",","y",",","width",",","height",")","*","in","table","coordinates","."]
code: def get_text_bounds(self, renderer):
      """
      Return the text bounds as *(x, y, width, height)* in table coordinates.
      """
      return (
          self._text.get_window_extent(renderer)
          .transformed(self.get_data_transform().inverted())
          .bounds
      )
  
imports: import numpy
  from .None import _api, _docstring
  from .artist import Artist, allow_rasterization
  from .patches import Rectangle
  from .text import Text
  from .transforms import Bbox
  from .path import Path
label_desc: Use image node_id 10 for calling the Cell obj's underlying member method code with example usage: obj.get_text_bounds(renderer) and returns: self