class_docstr: Dot plot
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  stackdir : Literal["up", "down", "center", "centerwhole"], default="up"
      Direction in which to stack the dots. Options are
  stackratio : float, default=1
      How close to stack the dots. If value is less than 1,
      the dots overlap, if greater than 1 they are spaced.
  dotsize : float, default=1
      Diameter of dots relative to `binwidth`.
  stackgroups : bool, default=False
      If `True`{.py}, the dots are stacked across groups.
  
  See Also
  --------
  plotnine.stats.stat_bindot
class_docstr_tok: ["Dot","plot","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","stackdir",":","Literal","[","``","up","''",",","``","down","''",",","``","center","''",",","``","centerwhole","''","]",",","default=","''","up","''","Direction","in","which","to","stack","the","dots",".","Options","are","stackratio",":","float",",","default=1","How","close","to","stack","the","dots",".","If","value","is","less","than","1",",","the","dots","overlap",",","if","greater","than","1","they","are","spaced",".","dotsize",":","float",",","default=1","Diameter","of","dots","relative","to","`","binwidth","`",".","stackgroups",":","bool",",","default=False","If","`","True","`","{",".py","}",",","the","dots","are","stacked","across","groups",".","See","Also","--","--","--","--","plotnine.stats.stat_bindot"]
docstr: Draw a point in the box
  
  Parameters
  ----------
  data : Series
      Data Row
  da : DrawingArea
      Canvas
  lyr : layer
      Layer
  
  Returns
  -------
  out : DrawingArea
docstr_tok: ["Draw","a","point","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 a point in the box
  
      Parameters
      ----------
      data : Series
          Data Row
      da : DrawingArea
          Canvas
      lyr : layer
          Layer
  
      Returns
      -------
      out : DrawingArea
      """
      from matplotlib.lines import Line2D
  
      fill = to_rgba(data["fill"], data["alpha"])
      key = Line2D(
          [0.5 * da.width],
          [0.5 * da.height],
          marker="o",
          markersize=da.width / 2,
          markerfacecolor=fill,
          markeredgecolor=data["color"],
      )
      da.add_artist(key)
      return da
  
file_path: plotnine/plotnine/geoms/geom_dotplot.py
imports: from __future__ import annotations
  import typing
  from warnings import warn
  import numpy
  from .._utils import groupby_apply, resolution, to_rgba
  from ..doctools import document
  from ..exceptions import PlotnineWarning
  from .geom import geom
label_desc: Use image node_id 3 for calling the geom_dotplot obj's underlying member method code with example usage: obj.draw_legend(data, da, lyr) and returns: da