Skip to content

Commit

Permalink
Fix example to use item returned by PlotWidget.add*
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Dec 13, 2023
1 parent f8bb5f6 commit 0388f74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/plotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ def showDelaunay(self):
x = numpy.random.rand(nbPoints)
y = numpy.random.rand(nbPoints)
value = numpy.random.rand(nbPoints)
legend = plot.addScatter(x=x, y=y, value=value)
scatter = plot.getScatter(legend)
scatter = plot.addScatter(x=x, y=y, value=value)
scatter.setVisualization("solid")
plot.resetZoom()

Expand Down

0 comments on commit 0388f74

Please sign in to comment.