class_docstr: Plot points (Scatter plot)
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
class_docstr_tok: ["Plot","points","(","Scatter","plot",")","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}"]
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
  
      if data["fill"] is None:
          data["fill"] = data["color"]
  
      size = (data["size"] + data["stroke"]) * SIZE_FACTOR
      stroke = data["stroke"] * SIZE_FACTOR
      fill = to_rgba(data["fill"], data["alpha"])
      color = to_rgba(data["color"], data["alpha"])
  
      key = Line2D(
          [0.5 * da.width],
          [0.5 * da.height],
          marker=data["shape"],
          markersize=size,
          markerfacecolor=fill,
          markeredgecolor=color,
          markeredgewidth=stroke,
      )
      da.add_artist(key)
      return da
  
file_path: plotnine/plotnine/geoms/geom_point.py
imports: from __future__ import annotations
  import typing
  import numpy
  from .._utils import SIZE_FACTOR, to_rgba
  from ..doctools import document
  from ..scales.scale_shape import FILLED_SHAPES
  from .geom import geom
label_desc: Use image node_id 4 for calling the geom_point obj's underlying member method code with example usage: obj.draw_legend(data, da, lyr) and returns: da