class_docstr: Draws line plots in 3D.
docstr: 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.
  ====================  ==================================================
docstr_tok: ["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",".","====================","=================================================="]
code: def setData(self, **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.
      ====================  ==================================================
      """
      args = ["pos", "color", "width", "mode", "antialias"]
      for k in kwds.keys():
          if k not in args:
              raise Exception(
                  "Invalid keyword argument: %s (allowed arguments are %s)"
                  % (k, str(args))
              )
      self.antialias = False
      if "pos" in kwds:
          pos = kwds.pop("pos")
          self.pos = np.ascontiguousarray(pos, dtype=np.float32)
      if "color" in kwds:
          color = kwds.pop("color")
          if isinstance(color, np.ndarray):
              color = np.ascontiguousarray(color, dtype=np.float32)
          self.color = color
      for k, v in kwds.items():
          setattr(self, k, v)
      self.update()
  
file_path: pyqtgraph/pyqtgraph/opengl/items/GLLinePlotItem.py
imports: from OpenGL.GL import *
  import numpy
  from ...None import QtGui
  from ...None import functions
  from ..GLGraphicsItem import GLGraphicsItem
label_desc: Use image node_id 2 for calling the GLLinePlotItem obj's underlying member method code with example usage: obj.setData() without return types