class_docstr: A line-based PathEffect which draws a path with a ticked style.
  
  This line style is frequently used to represent constraints in
  optimization.  The ticks may be used to indicate that one side
  of the line is invalid or to represent a closed boundary of a
  domain (i.e. a wall or the edge of a pipe).
  
  The spacing, length, and angle of ticks can be controlled.
  
  This line style is sometimes referred to as a hatched line.
  
  See also the :doc:`/gallery/misc/tickedstroke_demo` example.
class_docstr_tok: ["A","line-based","PathEffect","which","draws","a","path","with","a","ticked","style",".","This","line","style","is","frequently","used","to","represent","constraints","in","optimization",".","The","ticks","may","be","used","to","indicate","that","one","side","of","the","line","is","invalid","or","to","represent","a","closed","boundary","of","a","domain","(","i.e",".","a","wall","or","the","edge","of","a","pipe",")",".","The","spacing",",","length",",","and","angle","of","ticks","can","be","controlled",".","This","line","style","is","sometimes","referred","to","as","a","hatched","line",".","See","also","the",":","doc",":","`","\/gallery\/misc\/tickedstroke_demo","`","example","."]
docstr: Parameters
  ----------
  offset : (float, float), default: (0, 0)
      The (x, y) offset to apply to the path, in points.
  spacing : float, default: 10.0
      The spacing between ticks in points.
  angle : float, default: 45.0
      The angle between the path and the tick in degrees.  The angle
      is measured as if you were an ant walking along the curve, with
      zero degrees pointing directly ahead, 90 to your left, -90
      to your right, and 180 behind you. To change side of the ticks,
      change sign of the angle.
  length : float, default: 1.414
      The length of the tick relative to spacing.
      Recommended length = 1.414 (sqrt(2)) when angle=45, length=1.0
      when angle=90 and length=2.0 when angle=60.
  **kwargs
      Extra keywords are stored and passed through to
      :meth:`AbstractPathEffect._update_gc`.
  
  Examples
  --------
  See :doc:`/gallery/misc/tickedstroke_demo`.
code: def __init__(
      self,
      offset=(0, 0),
      spacing=10.0,
      angle=45.0,
      length=np.sqrt(2),
      **kwargs,
  ):
      """
      Parameters
      ----------
      offset : (float, float), default: (0, 0)
          The (x, y) offset to apply to the path, in points.
      spacing : float, default: 10.0
          The spacing between ticks in points.
      angle : float, default: 45.0
          The angle between the path and the tick in degrees.  The angle
          is measured as if you were an ant walking along the curve, with
          zero degrees pointing directly ahead, 90 to your left, -90
          to your right, and 180 behind you. To change side of the ticks,
          change sign of the angle.
      length : float, default: 1.414
          The length of the tick relative to spacing.
          Recommended length = 1.414 (sqrt(2)) when angle=45, length=1.0
          when angle=90 and length=2.0 when angle=60.
      **kwargs
          Extra keywords are stored and passed through to
          :meth:`AbstractPathEffect._update_gc`.
  
      Examples
      --------
      See :doc:`/gallery/misc/tickedstroke_demo`.
      """
      super().__init__(offset)
  
      self._spacing = spacing
      self._angle = angle
      self._length = length
      self._gc = kwargs
  
imports: from matplotlib.backend_bases import RendererBase
  from matplotlib import colors
  from matplotlib import patches
  from matplotlib import transforms
  from matplotlib.path import Path
  import numpy
label_desc: Use image node_id 1 to create a new TickedStroke object from inherited base classes: AbstractPathEffect with example: obj = TickedStroke(offset, spacing, angle, length)