add test case for the PlotDataItem.clear() in stepMode
This commit is contained in:
parent
240889c460
commit
c238be004e
@ -58,3 +58,9 @@ def test_clear():
|
||||
|
||||
assert pdi.xData == None
|
||||
assert pdi.yData == None
|
||||
|
||||
def test_clear_in_step_mode():
|
||||
w = pg.PlotWidget()
|
||||
c = pg.PlotDataItem([1,4,2,3], [5,7,6], stepMode=True)
|
||||
w.addItem(c)
|
||||
c.clear()
|
||||
|
Loading…
x
Reference in New Issue
Block a user