Skip to content

Segment

Segment

Bases: DataModel

A data model for representing segment.

Attributes:

  • title (str) –

    The title of the segment.

  • x (list[int]) –

    The x-coordinates of the segment.

  • y (list[int]) –

    The y-coordinates of the segment.

The segment is represented as lists of x and y coordinates, where each index corresponds to a specific point.