class_docstr: A simple shadow via a line.
class_docstr_tok: ["A","simple","shadow","via","a","line","."]
docstr: Parameters
  ----------
  offset : pair of floats
      The offset to apply to the path, in points.
  shadow_color : color
      The shadow color. Default is black.
      A value of ``None`` takes the original artist's color
      with a scale factor of `rho`.
  alpha : float
      The alpha transparency of the created shadow patch.
      Default is 0.3.
  rho : float
      A scale factor to apply to the rgbFace color if `shadow_rgbFace`
      is ``None``. Default is 0.3.
  **kwargs
      Extra keywords are stored and passed through to
      :meth:`AbstractPathEffect._update_gc`.
docstr_tok: ["Parameters","--","--","--","--","--","offset",":","pair","of","floats","The","offset","to","apply","to","the","path",",","in","points",".","shadow_color",":","color","The","shadow","color",".","Default","is","black",".","A","value","of","``","None","``","takes","the","original","artist","'s","color","with","a","scale","factor","of","`","rho","`",".","alpha",":","float","The","alpha","transparency","of","the","created","shadow","patch",".","Default","is","0.3.","rho",":","float","A","scale","factor","to","apply","to","the","rgbFace","color","if","`","shadow_rgbFace","`","is","``","None","``",".","Default","is","0.3",".","*","*","kwargs","Extra","keywords","are","stored","and","passed","through","to",":","meth",":","`","AbstractPathEffect._update_gc","`","."]
code: def __init__(
      self,
      offset=(2, -2),
      shadow_color="k",
      alpha=0.3,
      rho=0.3,
      **kwargs,
  ):
      """
      Parameters
      ----------
      offset : pair of floats
          The offset to apply to the path, in points.
      shadow_color : color
          The shadow color. Default is black.
          A value of ``None`` takes the original artist's color
          with a scale factor of `rho`.
      alpha : float
          The alpha transparency of the created shadow patch.
          Default is 0.3.
      rho : float
          A scale factor to apply to the rgbFace color if `shadow_rgbFace`
          is ``None``. Default is 0.3.
      **kwargs
          Extra keywords are stored and passed through to
          :meth:`AbstractPathEffect._update_gc`.
  
      """
      super(SimpleLineShadow, self).__init__(offset)
      if shadow_color is None:
          self._shadow_color = shadow_color
      else:
          self._shadow_color = mcolors.to_rgba(shadow_color)
      self._alpha = alpha
      self._rho = rho
  
      #: The dictionary of keywords to update the graphics collection with.
      self._gc = kwargs
  
      #: The offset transform object. The offset isn't calculated yet
      #: as we don't know how big the figure will be in pixels.
      self._offset_tran = mtransforms.Affine2D()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from matplotlib.backend_bases import RendererBase
  from matplotlib import colors
  from matplotlib import patches
  from matplotlib import transforms
label_desc: Use image node_id 1 to create a new SimpleLineShadow object from inherited base classes: AbstractPathEffect with example: obj = SimpleLineShadow(offset, shadow_color, alpha, rho)