From c05e1e8a0a44c4beae7a09cb56664092d3eefb8e Mon Sep 17 00:00:00 2001 From: Michael Higgins <55243596+Higgs32584@users.noreply.github.com> Date: Sat, 4 Mar 2023 19:50:47 -0500 Subject: [PATCH] Update container.py --- lib/matplotlib/container.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/container.py b/lib/matplotlib/container.py index 62fe9a35e666..9b76fbe4e19f 100644 --- a/lib/matplotlib/container.py +++ b/lib/matplotlib/container.py @@ -24,6 +24,7 @@ def __init__(self, kl, label=None): def remove(self): for c in cbook.flatten( self, scalarp=lambda x: isinstance(x, Artist)): + self.set_label("") if c is not None: c.remove() if self._remove_method: