Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46080e6

Browse files
greglucasmeeseeksmachine
authored andcommitted
Backport PR #25428: Fix Legend.set_draggable() with update="bbox"
1 parent 34f9999 commit 46080e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def finalize_offset(self):
7777
if self._update == "loc":
7878
self._update_loc(self.get_loc_in_canvas())
7979
elif self._update == "bbox":
80-
self._bbox_to_anchor(self.get_loc_in_canvas())
80+
self._update_bbox_to_anchor(self.get_loc_in_canvas())
8181

8282
def _update_loc(self, loc_in_canvas):
8383
bbox = self.legend.get_bbox_to_anchor()

0 commit comments

Comments
 (0)