diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index d634b7ccc9a4..772d1f93d334 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -874,16 +874,6 @@ def _auto_legend_data(self): return [vertices, bboxes, lines, offsets] - def draw_frame(self, b): - """ - Set whether to draw a frame around the legend box. - - Parameters - ---------- - b : bool - """ - self.set_frame_on(b) - def get_children(self): """Return the list of child artists.""" children = [] @@ -972,6 +962,8 @@ def set_frame_on(self, b): self._drawFrame = b self.stale = True + draw_frame = set_frame_on # Backcompat alias. + def get_bbox_to_anchor(self): """Return the bbox that the legend will be anchored to.""" if self._bbox_to_anchor is None: