From a211761ba371efc9e85d2f2c77f49070d1cac9b0 Mon Sep 17 00:00:00 2001 From: daniilS Date: Fri, 10 Mar 2023 15:20:24 +0000 Subject: [PATCH] Fix Legend.set_draggable() with update="bbox" --- lib/matplotlib/legend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index 315cc0be7aea..e06069a67563 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -77,7 +77,7 @@ def finalize_offset(self): if self._update == "loc": self._update_loc(self.get_loc_in_canvas()) elif self._update == "bbox": - self._bbox_to_anchor(self.get_loc_in_canvas()) + self._update_bbox_to_anchor(self.get_loc_in_canvas()) def _update_loc(self, loc_in_canvas): bbox = self.legend.get_bbox_to_anchor()