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.
2 parents 3ee0219 + 6e04afc commit f27a7f3Copy full SHA for f27a7f3
1 file changed
lib/matplotlib/legend.py
@@ -865,13 +865,8 @@ def _auto_legend_data(self):
865
return [vertices, bboxes, lines, offsets]
866
867
def get_children(self):
868
- """Return the list of child artists."""
869
- children = []
870
- if self._legend_box:
871
- children.append(self._legend_box)
872
- children.append(self.get_frame())
873
-
874
- return children
+ # docstring inherited
+ return [self._legend_box, self.get_frame()]
875
876
def get_frame(self):
877
"""Return the `~.patches.Rectangle` used to frame the legend."""
0 commit comments