Line

class pywwt.annotation.Line(**kwargs: Any)[source]

Bases: Annotation

A line annotation.

Attributes Summary

color

Assigns color for the line (str or tuple)

shape

The name of the shape (str).

width

Assigns width for the line in pixels (Quantity)

Methods Summary

add_point(coord)

Add one or more points to a line object.

Attributes Documentation

color

Assigns color for the line (str or tuple)

shape = 'line'

The name of the shape (str).

width

Assigns width for the line in pixels (Quantity)

Methods Documentation

add_point(coord)[source]

Add one or more points to a line object.

Parameters:
coordQuantity

The coordinates of the desired point(s).