DataSet presents data points as unconnected items on the plot.
Data is one of:
two arrays (first is x; second is y),
array of tuples (components 0 and 1 are x and y), or
a single array of values (index is x, value is y).
Methods
|
|
|
|
__init__
|
__init__ (
self,
x,
y=None,
makeItem=None,
highlightItem=None,
itemWidth=2,
itemHeight=2,
itemXShift=0,
itemYShift=0,
baseColor='black',
highlightColor='red',
)
|
|
circle
|
circle (
self,
canvas,
x,
y,
color,
)
|
|
createItems
|
createItems ( self )
|
|
deleteItems
|
deleteItems ( self )
|
|
getX
|
getX ( self, n )
|
|
getY
|
getY ( self, n )
|
|
highlight
|
highlight ( self, n )
|
|
highlightCircle
|
highlightCircle (
self,
item,
color,
)
|
|
length
|
length ( self )
|
|
replaceData
|
replaceData (
self,
x,
y=None,
)
|
|
setDoubleCallback
|
setDoubleCallback (
self,
cb,
closure,
)
|
|
setSingleCallback
|
setSingleCallback (
self,
cb,
closure,
)
|
|
setTag
|
setTag (
self,
plot,
tag,
)
|
|