Skip to content

Commit ef62e5b

Browse files
authored
Merge pull request #29680 from sandyowlet/main
DOC: fix the bug of examples\event_handling
2 parents 35d841b + dbc846c commit ef62e5b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy