We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35d841b + dbc846c commit ef62e5bCopy full SHA for ef62e5b
galleries/examples/event_handling/data_browser.py
@@ -82,7 +82,7 @@ def update(self):
82
transform=ax2.transAxes, va='top')
83
ax2.set_ylim(-0.5, 1.5)
84
self.selected.set_visible(True)
85
- self.selected.set_data(xs[dataind], ys[dataind])
+ self.selected.set_data([xs[dataind]], [ys[dataind]])
86
87
self.text.set_text('selected: %d' % dataind)
88
fig.canvas.draw()
0 commit comments