GLLinePlotItem

class pyqtgraph.opengl.GLLinePlotItem(**kwds)

Draws line plots in 3D.

__init__(**kwds)

All keyword arguments are passed to setData()

setData(**kwds)

Update the data displayed by this item. All arguments are optional; for example it is allowed to update vertex positions while leaving colors unchanged, etc.

Arguments:
pos (N,3) array of floats specifying point locations.
color (N,4) array of floats (0.0-1.0) or tuple of floats specifying a single color for the entire item.
width float specifying line width
antialias enables smooth line drawing
mode
‘lines’: Each pair of vertexes draws a single line
segment.
‘line_strip’: All vertexes are drawn as a
continuous set of line segments.

Previous topic

GLMeshItem

Next topic

GLAxisItem

This Page