Merge pull request #696 from campagnola/scatter-stepmode
Fix error when using PlotDataItem with both stepMode and symbol
This commit is contained in:
commit
c582fab9c6
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user