Skip to content

Commit b636e9e

Browse files
authored
Merge pull request #25428 from daniilS/draggable-legend-bbox
Fix Legend.set_draggable() with update="bbox"
2 parents bacd025 + a211761 commit b636e9e

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)