class_docstr: Class representing a single plot curve. Instances of this class are created
  automatically as part of :class:`PlotDataItem <pyqtgraph.PlotDataItem>`; 
  these rarely need to be instantiated directly.
  
  Features:
  
    - Fast data update
    - Fill under curve
    - Mouse interaction
  
  =====================  ===============================================
  **Signals:**
  sigPlotChanged(self)   Emitted when the data being plotted has changed
  sigClicked(self, ev)   Emitted when the curve is clicked
  =====================  ===============================================
class_docstr_tok: ["Class","representing","a","single","plot","curve",".","Instances","of","this","class","are","created","automatically","as","part","of",":","class",":","`","PlotDataItem","<","pyqtgraph.PlotDataItem",">","`",";","these","rarely","need","to","be","instantiated","directly",".","Features",":","-","Fast","data","update","-","Fill","under","curve","-","Mouse","interaction","=====================","===============================================","*","*","Signals",":","*","*","sigPlotChanged","(","self",")","Emitted","when","the","data","being","plotted","has","changed","sigClicked","(","self",",","ev",")","Emitted","when","the","curve","is","clicked","=====================","==============================================="]
docstr: =============== =================================================================
  **Arguments:**
  x, y            (numpy arrays) Data to display
  pen             Pen to use when drawing. Any single argument accepted by
                  :func:`mkPen <pyqtgraph.mkPen>` is allowed.
  shadowPen       Pen for drawing behind the primary pen. Usually this
                  is used to emphasize the curve by providing a
                  high-contrast border. Any single argument accepted by
                  :func:`mkPen <pyqtgraph.mkPen>` is allowed.
  fillLevel       (float or None) Fill the area under the curve to
                  the specified value.
  fillOutline     (bool) If True, an outline surrounding the `fillLevel`
                  area is drawn.
  brush           Brush to use when filling. Any single argument accepted
                  by :func:`mkBrush <pyqtgraph.mkBrush>` is allowed.
  antialias       (bool) Whether to use antialiasing when drawing. This
                  is disabled by default because it decreases performance.
  stepMode        (str or None) If 'center', a step is drawn using the `x`
                  values as boundaries and the given `y` values are
                  associated to the mid-points between the boundaries of
                  each step. This is commonly used when drawing
                  histograms. Note that in this case, ``len(x) == len(y) + 1``
                  
                  If 'left' or 'right', the step is drawn assuming that
                  the `y` value is associated to the left or right boundary,
                  respectively. In this case ``len(x) == len(y)``
                  If not passed or an empty string or `None` is passed, the
                  step mode is not enabled.
  connect         Argument specifying how vertexes should be connected
                  by line segments. 
                  
                      | 'all' (default) indicates full connection. 
                      | 'pairs' draws one separate line segment for each two points given.
                      | 'finite' omits segments attached to `NaN` or `Inf` values. 
                      | For any other connectivity, specify an array of boolean values.
  compositionMode See :func:`setCompositionMode
                  <pyqtgraph.PlotCurveItem.setCompositionMode>`.
  skipFiniteCheck (bool, defaults to `False`) Optimization flag that can
                  speed up plotting by not checking and compensating for
                  `NaN` values.  If set to `True`, and `NaN` values exist, the
                  data may not be displayed or the plot may take a
                  significant performance hit.
  =============== =================================================================
  
  If non-keyword arguments are used, they will be interpreted as
  ``setData(y)`` for a single argument and ``setData(x, y)`` for two
  arguments.
  
  **Notes on performance:**
  
  Line widths greater than 1 pixel affect the performance as discussed in 
  the documentation of :class:`PlotDataItem <pyqtgraph.PlotDataItem>`.
docstr_tok: ["===============","=================================================================","*","*","Arguments",":","*","*","x",",","y","(","numpy","arrays",")","Data","to","display","pen","Pen","to","use","when","drawing",".","Any","single","argument","accepted","by",":","func",":","`","mkPen","<","pyqtgraph.mkPen",">","`","is","allowed",".","shadowPen","Pen","for","drawing","behind","the","primary","pen",".","Usually","this","is","used","to","emphasize","the","curve","by","providing","a","high-contrast","border",".","Any","single","argument","accepted","by",":","func",":","`","mkPen","<","pyqtgraph.mkPen",">","`","is","allowed",".","fillLevel","(","float","or","None",")","Fill","the","area","under","the","curve","to","the","specified","value",".","fillOutline","(","bool",")","If","True",",","an","outline","surrounding","the","`","fillLevel","`","area","is","drawn",".","brush","Brush","to","use","when","filling",".","Any","single","argument","accepted","by",":","func",":","`","mkBrush","<","pyqtgraph.mkBrush",">","`","is","allowed",".","antialias","(","bool",")","Whether","to","use","antialiasing","when","drawing",".","This","is","disabled","by","default","because","it","decreases","performance",".","stepMode","(","str","or","None",")","If","'center","'",",","a","step","is","drawn","using","the","`","x","`","values","as","boundaries","and","the","given","`","y","`","values","are","associated","to","the","mid-points","between","the","boundaries","of","each","step",".","This","is","commonly","used","when","drawing","histograms",".","Note","that","in","this","case",",","``","len","(","x",")","==","len","(","y",")","+","1","``","If","'left","'","or","'right","'",",","the","step","is","drawn","assuming","that","the","`","y","`","value","is","associated","to","the","left","or","right","boundary",",","respectively",".","In","this","case","``","len","(","x",")","==","len","(","y",")","``","If","not","passed","or","an","empty","string","or","`","None","`","is","passed",",","the","step","mode","is","not","enabled",".","connect","Argument","specifying","how","vertexes","should","be","connected","by","line","segments",".","|","'all","'","(","default",")","indicates","full","connection",".","|","'pairs","'","draws","one","separate","line","segment","for","each","two","points","given",".","|","'finite","'","omits","segments","attached","to","`","NaN","`","or","`","Inf","`","values",".","|","For","any","other","connectivity",",","specify","an","array","of","boolean","values",".","compositionMode","See",":","func",":","`","setCompositionMode","<","pyqtgraph.PlotCurveItem.setCompositionMode",">","`",".","skipFiniteCheck","(","bool",",","defaults","to","`","False","`",")","Optimization","flag","that","can","speed","up","plotting","by","not","checking","and","compensating","for","`","NaN","`","values",".","If","set","to","`","True","`",",","and","`","NaN","`","values","exist",",","the","data","may","not","be","displayed","or","the","plot","may","take","a","significant","performance","hit",".","===============","=================================================================","If","non-keyword","arguments","are","used",",","they","will","be","interpreted","as","``","setData","(","y",")","``","for","a","single","argument","and","``","setData","(","x",",","y",")","``","for","two","arguments",".","*","*","Notes","on","performance",":","*","*","Line","widths","greater","than","1","pixel","affect","the","performance","as","discussed","in","the","documentation","of",":","class",":","`","PlotDataItem","<","pyqtgraph.PlotDataItem",">","`","."]
code: def setData(self, *args, **kargs):
      """
      =============== =================================================================
      **Arguments:**
      x, y            (numpy arrays) Data to display
      pen             Pen to use when drawing. Any single argument accepted by
                      :func:`mkPen <pyqtgraph.mkPen>` is allowed.
      shadowPen       Pen for drawing behind the primary pen. Usually this
                      is used to emphasize the curve by providing a
                      high-contrast border. Any single argument accepted by
                      :func:`mkPen <pyqtgraph.mkPen>` is allowed.
      fillLevel       (float or None) Fill the area under the curve to
                      the specified value.
      fillOutline     (bool) If True, an outline surrounding the `fillLevel`
                      area is drawn.
      brush           Brush to use when filling. Any single argument accepted
                      by :func:`mkBrush <pyqtgraph.mkBrush>` is allowed.
      antialias       (bool) Whether to use antialiasing when drawing. This
                      is disabled by default because it decreases performance.
      stepMode        (str or None) If 'center', a step is drawn using the `x`
                      values as boundaries and the given `y` values are
                      associated to the mid-points between the boundaries of
                      each step. This is commonly used when drawing
                      histograms. Note that in this case, ``len(x) == len(y) + 1``
  
                      If 'left' or 'right', the step is drawn assuming that
                      the `y` value is associated to the left or right boundary,
                      respectively. In this case ``len(x) == len(y)``
                      If not passed or an empty string or `None` is passed, the
                      step mode is not enabled.
      connect         Argument specifying how vertexes should be connected
                      by line segments.
  
                          | 'all' (default) indicates full connection.
                          | 'pairs' draws one separate line segment for each two points given.
                          | 'finite' omits segments attached to `NaN` or `Inf` values.
                          | For any other connectivity, specify an array of boolean values.
      compositionMode See :func:`setCompositionMode
                      <pyqtgraph.PlotCurveItem.setCompositionMode>`.
      skipFiniteCheck (bool, defaults to `False`) Optimization flag that can
                      speed up plotting by not checking and compensating for
                      `NaN` values.  If set to `True`, and `NaN` values exist, the
                      data may not be displayed or the plot may take a
                      significant performance hit.
      =============== =================================================================
  
      If non-keyword arguments are used, they will be interpreted as
      ``setData(y)`` for a single argument and ``setData(x, y)`` for two
      arguments.
  
      **Notes on performance:**
  
      Line widths greater than 1 pixel affect the performance as discussed in
      the documentation of :class:`PlotDataItem <pyqtgraph.PlotDataItem>`.
      """
      self.updateData(*args, **kargs)
  
imports: from ..Qt import QtCore, QtGui, QtWidgets
  import math
  import sys
  import warnings
  import numpy
  from ..None import Qt, debug
  from ..None import functions
  from ..None import getConfigOption
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 17 for calling the PlotCurveItem obj's underlying member method code with example usage: obj.setData() without return types