8000 DOC: fix the bug of examples\event_handling · matplotlib/matplotlib@dbc846c · GitHub
[go: up one dir, main page]

Skip to content

Commit dbc846c

Browse files
committed
DOC: fix the bug of examples\event_handling
1 parent 35d841b commit dbc846c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

galleries/examples/event_handling/data_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def update(self):
8282
transform=ax2.transAxes, va='top')
8383
ax2.set_ylim(-0.5, 1.5)
8484
self.selected.set_visible(True)
85-
self.selected.set_data(xs[dataind], ys[dataind])
85+
self.selected.set_data([xs[dataind]], [ys[dataind]])
8686

8787
self.text.set_text('selected: %d' % dataind)
8888
fig.canvas.draw()

0 commit comments

Comments
 (0)
0