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
axisis 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. WhenaxisisNonethe data is used directly as the segment endpoints (2 points per line).Indexing and
valueoperate per-line:valueis a 1D array ofn_linesaxis positions, or an[n_lines, 2, 3]array of segment endpoints whenaxisisNone.Manages the vertex positions buffer shown in the graphic. Supports fancy indexing if the data array also supports it.