8000 Fix Legend.set_draggable() with update="bbox" · matplotlib/matplotlib@a211761 · GitHub
[go: up one dir, main page]

Skip to content

Commit a211761

Browse files
committed
Fix Legend.set_draggable() with update="bbox"
1 parent cb2bdb1 commit a211761

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)
0