fastplotlib.LineGraphicΒΆ
- class LineGraphic(data, thickness=2.0, colors='w', alpha=1.0, cmap=None, cmap_values=None, z_position=None, collection_index=None, *args, **kwargs)[source]ΒΆ
Create a line Graphic, 2d or 3d
- Parameters:
data (array-like) β Line data to plot, 2D must be of shape [n_points, 2], 3D must be of shape [n_points, 3]
thickness (float, optional, default 2.0) β thickness of the line
colors (str, array, or iterable, default "w") β specify colors as a single human-readable string, a single RGBA array, or an iterable of strings or RGBA arrays
cmap (str, optional) β apply a colormap to the line instead of assigning colors manually, this overrides any argument passed to βcolorsβ
cmap_values (1D array-like or Iterable of numerical values, optional) β if provided, these values are used to map the colors from the cmap
alpha (float, optional, default 1.0) β alpha value for the colors
z_position (float, optional) β z-axis position for placing the graphic
args β passed to Graphic
kwargs β passed to Graphic
Features
- data:
ImageDataFeature
Manages the line [x, y, z] positions data buffer, allows regular and fancy indexing.
- colors:
ColorFeature
Manages the color buffer, allows regular and fancy indexing.
- cmap:
CmapFeature
Manages the cmap, wraps
ColorFeature
to add additional functionality relevant to cmaps.- thickness:
ThicknessFeature
Manages the thickness feature of the lines.
- present:
PresentFeature
Control the presence of the Graphic in the scene, set to
True
orFalse