Line

class pywwt.Line(parent=None, **kwargs)[source]

Bases: pywwt.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(self, 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(self, coord)[source]

Add one or more points to a line object.

Parameters
coordQuantity

The coordinates of the desired point(s).