fastplotlib.graphics.features.InfLineAxisData#

class InfLineAxisData(data, axis=None, property_name='data')[source]#

Manages the positions buffer for InfLineGraphic.

Each infinite line is stored as a two-point segment, so the buffer has two vertices per line. When axis is one of "x", "y", "z" the data is a 1D array of positions along that axis and one infinite line is drawn at each position. When axis is None the data is used directly as the segment endpoints (2 points per line).

Indexing and value operate per-line: value is a 1D array of n_lines axis positions, or an [n_lines, 2, 3] array of segment endpoints when axis is None.

Manages the vertex positions buffer shown in the graphic. Supports fancy indexing if the data array also supports it.