class_docstr: Vertical line
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
docstr: Draw a vertical line in the box
  
  Parameters
  ----------
  data : Series
      Data Row
  da : DrawingArea
      Canvas
  lyr : layer
      Layer
  
  Returns
  -------
  out : DrawingArea
docstr_tok: ["Draw","a","vertical","line","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 vertical line in the box
  
      Parameters
      ----------
      data : Series
          Data Row
      da : DrawingArea
          Canvas
      lyr : layer
          Layer
  
      Returns
      -------
      out : DrawingArea
      """
      from matplotlib.lines import Line2D
  
      x = [0.5 * da.width] * 2
      y = [0, da.height]
      data["size"] *= SIZE_FACTOR
      color = to_rgba(data["color"], data["alpha"])
      key = Line2D(
          x,
          y,
          linestyle=data["linetype"],
          linewidth=data["size"],
          color=color,
          solid_capstyle="butt",
          antialiased=False,
      )
      da.add_artist(key)
      return da
  
file_path: plotnine/plotnine/geoms/geom_vline.py
imports: from __future__ import annotations
  import typing
  from warnings import warn
  import numpy
  import pandas
  from .._utils import SIZE_FACTOR, order_as_data_mapping, to_rgba
  from ..doctools import document
  from ..exceptions import PlotnineWarning
  from ..mapping import aes
  from .geom import geom
  from .geom_segment import geom_segment
label_desc: Use image node_id 3 for calling the geom_vline obj's underlying member method code with example usage: obj.draw_legend(data, da, lyr) and returns: da