# Lines

A lines data object stores one or more lines to be added to the data collection. It can be created using the Generate trajectory lines modifier, by sampling the current positions of the particles over time. Alternatively, users can create lines programmatically using the Python `DataCollection.lines.create()` method.

The visual appearance of the lines in rendered images is controlled by the associated lines visual element.

See also

`ovito.data.Lines` (Python API)