Fix error when using PlotDataItem with both stepMode and symbol

This commit is contained in:
Luke Campagnola 2018-05-30 18:54:31 -07:00
parent 6f0e8ebe3f
commit de9007d9c4

View File

@ -490,6 +490,9 @@ class PlotDataItem(GraphicsObject):
self.curve.hide() self.curve.hide()
if scatterArgs['symbol'] is not None: 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.setData(x=x, y=y, **scatterArgs)
self.scatter.show() self.scatter.show()
else: else: