Skip to content

Commit 0388f74

Browse files
committed
Fix example to use item returned by PlotWidget.add*
1 parent f8bb5f6 commit 0388f74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/plotWidget.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ def showDelaunay(self):
160160
x = numpy.random.rand(nbPoints)
161161
y = numpy.random.rand(nbPoints)
162162
value = numpy.random.rand(nbPoints)
163-
legend = plot.addScatter(x=x, y=y, value=value)
164-
scatter = plot.getScatter(legend)
163+
scatter = plot.addScatter(x=x, y=y, value=value)
165164
scatter.setVisualization("solid")
166165
plot.resetZoom()
167166

0 commit comments

Comments
 (0)