4.1.5. undulate.bricks.shape module

Definition of Shape in Annotations

undulate.bricks.shape.scircle(x: float, y: float, r: float) List[undulate.bricks.generic.SplineSegment]

Generate a circle using 4-quadrant bezier curves

undulate.bricks.shape.square(x: float, y: float, w: float) List[undulate.bricks.generic.SplineSegment]

Generate a square using a list of points

undulate.bricks.shape.arrow_angle(dy: float, dx: float) float

Calculate the angle to align arrows based on the derivative of the signal

Parameters
  • dy (float) –

  • dx (float) –

Returns

angle in degree

undulate.bricks.shape.arrow_markers(renderer: undulate.renderers.renderer.Renderer, pattern: str, ds: undulate.bricks.generic.Point, de: undulate.bricks.generic.Point, **kwargs) str

Generate markers at extremities of an arrow/edge

undulate.bricks.shape.generate_patterns(prefixs: list, root: str, suffixs: list)

generate possible pattern prefixs/root/suffixs

undulate.bricks.shape.TimeCompressor(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Multiline Time Compressor

Parameters
  • x (float) – position of the time compressor

  • ymin (float) – top limit of the time compressor

  • ymax (float) – bottom limit of the time compressor

undulate.bricks.shape.HorizontalLine(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Horizontal Line

Parameters
  • y (float) – position of the line

  • xmin (float) – left limit of the segment

  • xmax (float) – right limit of the segment

undulate.bricks.shape.VerticalLine(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Vertical Line

Parameters
  • x (float) – position of the line

  • ymin (float) – top limit of the segment

  • ymax (float) – bottom limit of the segment

undulate.bricks.shape.ArrowStraight(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Straight Line Edge

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity

undulate.bricks.shape.ArrowHV(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Straight Line Edge with a corner Horizontal -> Vertical

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity

undulate.bricks.shape.ArrowVH(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Straight Line Edge with corner Vertical -> Horizontal

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity

undulate.bricks.shape.ArrowHVH(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Straight Line Edge Horizontal -> Vertical -> Horizonal

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity

undulate.bricks.shape.ArrowWave(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

S-Shaped Edge

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity

undulate.bricks.shape.ArrowHWave(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Straight -> Curved Line Edge

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity

undulate.bricks.shape.ArrowWaveH(renderer: undulate.renderers.renderer.Renderer, pattern: str, **kwargs) str

Curved -> Straight Line Edge

Parameters
  • start (Point) – coordinate of start extremity

  • end (Point) – coordinate of end extremity