'**Ordered Arguments:**
* If there is only one unnamed argument, it will be interpreted like the \'spots\' argument.
* If there are two unnamed arguments, they will be interpreted as sequences of x and y values.
**Keyword Arguments:**
*spots*                Optional list of dicts. Each dict specifies parameters for a single spot:
{\'pos\': (x,y), \'size\', \'pen\', \'brush\', \'symbol\'}. This is just an alternate method
of passing in data for the corresponding arguments.
*x*,*y*                1D arrays of x,y values.
*pos*                  2D structure of x,y pairs (such as Nx2 array or list of tuples)
*pxMode*               If True, spots are always the same size regardless of scaling, and size is given in px.
Otherwise, size is in scene coordinates and the spots scale with the view.
Default is True
*symbol*               can be one (or a list) of:
* \'o\'  circle (default)
* \'s\'  square
* \'t\'  triangle
* \'d\'  diamond
* \'+\'  plus
* any QPainterPath to specify custom symbol shapes. To properly obey the position and size,
custom symbols should be centered at (0,0) and width and height of 1.0. Note that it is also
possible to \'install\' custom shapes by setting ScatterPlotItem.Symbols[key] = shape.
*pen*                  The pen (or list of pens) to use for drawing spot outlines.
*brush*                The brush (or list of brushes) to use for filling spots.
*size*                 The size (or list of sizes) of spots. If *pxMode* is True, this value is in pixels. Otherwise,
it is in the item\'s local coordinate system.
*data*                 a list of python objects used to uniquely identify each spot.
*identical*            *Deprecated*. This functionality is handled automatically now.
*antialias*            Whether to draw symbols with antialiasing. Note that if pxMode is True, symbols are
always rendered with antialiasing (since the rendered symbols can be cached, this
incurs very little performance cost)
*compositionMode*      If specified, this sets the composition mode used when drawing the
scatter plot (see QPainter::CompositionMode in the Qt documentation).
*name*                 The name of this item. Names are used for automatically
generating LegendItem entries and by some exporters.'

def setData(self, *args, **kargs):

    oldData = self.data
    self.clear()
    self.addPoints(*args, **kargs)
