class_docstr: Textual annotations with a background
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  boxstyle : str, default="round"
      Options are:
      ```python
      'circle'
      'darrow'
      'larrow'
      'rarrow'
      'round '
      'round4'
      'roundtooth'
      'sawtooth'
      'square'
      ````
  boxcolor: str, tuple[float, float, float, float], default=None
      Color of box around the text. If None, the color is
      the same as the text.
  label_padding : float, default=0.25
      Amount of padding
  label_r : float, default=0.25
      Rounding radius of corners.
  label_size : float, default=0.7
      Linewidth of the label boundary.
  tooth_size : float, default=None
      Size of the `roundtooth` or `sawtooth` if they
      are the chosen *boxstyle*. The default depends
      on Matplotlib
  
  See Also
  --------
  plotnine.geoms.geom_text : For documentation of the
      parameters. :class:`matplotlib.patches.BoxStyle` for the
      parameters that affect the boxstyle.
docstr: Draw letter 'a' in the box
  
  Parameters
  ----------
  data : Series
      Data Row
  da : DrawingArea
      Canvas
  lyr : layer
      Layer
  
  Returns
  -------
  out : DrawingArea
docstr_tok: ["Draw","letter","'","a","'","in","the","box","Parameters","--","--","--","--","--","data",":","Series","Data","Row","da",":","DrawingArea","Canvas","lyr",":","layer","Layer","Returns","--","--","--","-","out",":","DrawingArea"]
code: def draw_legend(
      data: pd.Series[Any], da: DrawingArea, lyr: Layer
  ) -> DrawingArea:
      """
      Draw letter 'a' in the box
  
      Parameters
      ----------
      data : Series
          Data Row
      da : DrawingArea
          Canvas
      lyr : layer
          Layer
  
      Returns
      -------
      out : DrawingArea
      """
      from matplotlib.patches import Rectangle
  
      fill = to_rgba(data["fill"], data["alpha"])
  
      if data["fill"]:
          rect = Rectangle(
              (0, 0),
              width=da.width,
              height=da.height,
              linewidth=0,
              facecolor=fill,
              capstyle="projecting",
          )
          da.add_artist(rect)
      return geom_text.draw_legend(data, da, lyr)
  
imports: from __future__ import annotations
  import typing
  from .._utils import to_rgba
  from ..doctools import document
  from .geom_text import geom_text
label_desc: Use image node_id 1 for calling the geom_label obj's underlying member method code with example usage: obj.draw_legend(data, da, lyr) and returns: geom_text