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: Parameters
  ----------
  xy : 2-tuple
      The position of the bottom left corner of the cell.
  width : float
      The cell width.
  height : float
      The cell height.
  edgecolor : color, default: 'k'
      The color of the cell border.
  facecolor : color, default: 'w'
      The cell facecolor.
  fill : bool, default: True
      Whether the cell background is filled.
  text : str, optional
      The cell text.
  loc : {'right', 'center', 'left'}
      The alignment of the text within the cell.
  fontproperties : dict, optional
      A dict defining the font properties of the text. Supported keys and
      values are the keyword arguments accepted by `.FontProperties`.
  visible_edges : {'closed', 'open', 'horizontal', 'vertical'} or substring of 'BRTL'
      The cell edges to be drawn with a line: a substring of 'BRTL'
      (bottom, right, top, left), or one of 'open' (no edges drawn),
      'closed' (all edges drawn), 'horizontal' (bottom and top),
      'vertical' (right and left).
docstr_tok: ["Parameters","--","--","--","--","--","xy",":","2-tuple","The","position","of","the","bottom","left","corner","of","the","cell",".","width",":","float","The","cell","width",".","height",":","float","The","cell","height",".","edgecolor",":","color",",","default",":","'","k'","The","color","of","the","cell","border",".","facecolor",":","color",",","default",":","'","w'","The","cell","facecolor",".","fill",":","bool",",","default",":","True","Whether","the","cell","background","is","filled",".","text",":","str",",","optional","The","cell","text",".","loc",":","{","'right","'",",","'center","'",",","'left","'","}","The","alignment","of","the","text","within","the","cell",".","fontproperties",":","dict",",","optional","A","dict","defining","the","font","properties","of","the","text",".","Supported","keys","and","values","are","the","keyword","arguments","accepted","by","`",".FontProperties","`",".","visible_edges",":","{","'closed","'",",","'open","'",",","'horizontal","'",",","'vertical","'","}","or","substring","of","'BRTL'","The","cell","edges","to","be","drawn","with","a","line",":","a","substring","of","'BRTL'","(","bottom",",","right",",","top",",","left",")",",","or","one","of","'open","'","(","no","edges","drawn",")",",","'closed","'","(","all","edges","drawn",")",",","'horizontal","'","(","bottom","and","top",")",",","'vertical","'","(","right","and","left",")","."]
code: def __init__(
      self,
      xy,
      width,
      height,
      *,
      edgecolor="k",
      facecolor="w",
      fill=True,
      text="",
      loc="right",
      fontproperties=None,
      visible_edges="closed",
  ):
      """
          Parameters
          ----------
          xy : 2-tuple
              The position of the bottom left corner of the cell.
          width : float
              The cell width.
          height : float
              The cell height.
          edgecolor : color, default: 'k'
              The color of the cell border.
          facecolor : color, default: 'w'
              The cell facecolor.
          fill : bool, default: True
              Whether the cell background is filled.
          text : str, optional
              The cell text.
          loc : {'right', 'center', 'left'}
              The alignment of the text within the cell.
          fontproperties : dict, optional
              A dict defining the font properties of the text. Supported keys and
              values are the keyword arguments accepted by `.FontProperties`.
          visible_edges : {'closed', 'open', 'horizontal', 'vertical'} or \
  substring of 'BRTL'
              The cell edges to be drawn with a line: a substring of 'BRTL'
              (bottom, right, top, left), or one of 'open' (no edges drawn),
              'closed' (all edges drawn), 'horizontal' (bottom and top),
              'vertical' (right and left).
          """
  
      # Call base
      super().__init__(
          xy,
          width=width,
          height=height,
          fill=fill,
          edgecolor=edgecolor,
          facecolor=facecolor,
      )
      self.set_clip_on(False)
      self.visible_edges = visible_edges
  
      # Create text object
      self._loc = loc
      self._text = Text(
          x=xy[0],
          y=xy[1],
          clip_on=False,
          text=text,
          fontproperties=fontproperties,
          horizontalalignment=loc,
          verticalalignment="center",
      )
  
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 1 to create a new Cell object from inherited base classes: Rectangle with example: obj = Cell(xy, width, height)