From dbc846c871eeb27b7c17ddb52a272a558df501b3 Mon Sep 17 00:00:00 2001 From: Owl Date: Wed, 26 Feb 2025 17:07:42 +0800 Subject: [PATCH] DOC: fix the bug of examples\event_handling --- galleries/examples/event_handling/data_browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galleries/examples/event_handling/data_browser.py b/galleries/examples/event_handling/data_browser.py index 6d9068940285..3d2dfeddc3a3 100644 --- a/galleries/examples/event_handling/data_browser.py +++ b/galleries/examples/event_handling/data_browser.py @@ -82,7 +82,7 @@ def update(self): transform=ax2.transAxes, va='top') ax2.set_ylim(-0.5, 1.5) self.selected.set_visible(True) - self.selected.set_data(xs[dataind], ys[dataind]) + self.selected.set_data([xs[dataind]], [ys[dataind]]) self.text.set_text('selected: %d' % dataind) fig.canvas.draw() 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