Thanks to visit codestin.com Credit goes to github.com
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 d3cf53d + b4f94a4 commit 9fe0dadCopy full SHA for 9fe0dad
1 file changed
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