From 14090b8f9858190e1ea6693f084152d75626cf36 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Thu, 24 Mar 2022 09:21:17 +0100 Subject: [PATCH 1/2] Backport PR #22693: Remove QuadMesh from mouseover set. --- lib/matplotlib/collections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index c31c52c7b476..ec4a8b78c112 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -2015,6 +2015,7 @@ def __init__(self, *args, **kwargs): # super init delayed after own init because array kwarg requires # self._coordinates and self._shading super().__init__(**kwargs) + self.set_mouseover(False) # Only needed during signature deprecation __init__.__signature__ = inspect.signature( From abb8adf15e0ff181eefea455c4d266781b5ae6ad Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 24 Mar 2022 12:10:37 -0400 Subject: [PATCH 2/2] MNT: use old API to set mouseover False --- lib/matplotlib/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index ec4a8b78c112..b13a8868e758 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -2015,7 +2015,7 @@ def __init__(self, *args, **kwargs): # super init delayed after own init because array kwarg requires # self._coordinates and self._shading super().__init__(**kwargs) - self.set_mouseover(False) + self.mouseover = False # Only needed during signature deprecation __init__.__signature__ = inspect.signature(