Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47cfa35 commit 6e04afcCopy full SHA for 6e04afc
1 file changed
lib/matplotlib/legend.py
@@ -885,13 +885,8 @@ def draw_frame(self, b):
885
self.set_frame_on(b)
886
887
def get_children(self):
888
- """Return the list of child artists."""
889
- children = []
890
- if self._legend_box:
891
- children.append(self._legend_box)
892
- children.append(self.get_frame())
893
-
894
- return children
+ # docstring inherited
+ return [self._legend_box, self.get_frame()]
895
896
def get_frame(self):
897
"""Return the `~.patches.Rectangle` used to frame the legend."""
0 commit comments