Fix error when using PlotDataItem with both stepMode and symbol
This commit is contained in:
parent
6f0e8ebe3f
commit
de9007d9c4
@ -490,6 +490,9 @@ class PlotDataItem(GraphicsObject):
|
||||
self.curve.hide()
|
||||
|
||||
if scatterArgs['symbol'] is not None:
|
||||
|
||||
if self.opts.get('stepMode', False) is True:
|
||||
x = 0.5 * (x[:-1] + x[1:])
|
||||
self.scatter.setData(x=x, y=y, **scatterArgs)
|
||||
self.scatter.show()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user