GLLinePlotItem¶
-
class
pyqtgraph.opengl.
GLLinePlotItem
(**kwds)[source]¶ Draws line plots in 3D.
-
initializeGL
()[source]¶ Called after an item is added to a GLViewWidget. The widget’s GL context is made current before this method is called. (So this would be an appropriate time to generate lists, upload textures, etc.)
-
paint
()[source]¶ Called by the GLViewWidget to draw this item. It is the responsibility of the item to set up its own modelview matrix, but the caller will take care of pushing/popping.
-
setData
(**kwds)[source]¶ 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.
-