From 46080e6b113e1e654b04fd2ae5645f56b0be38f3 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Sat, 11 Mar 2023 08:46:30 -0700 Subject: [PATCH] Backport PR #25428: 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 2d41189b898a..522d3b0a0c7e 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() 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