MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_lines

Method get_lines

lib/matplotlib/legend.py:1016–1018  ·  view source on GitHub ↗

r"""Return the list of `~.lines.Line2D`\s in the legend.

(self)

Source from the content-addressed store, hash-verified

1014 return self.legendPatch
1015
1016 def get_lines(self):
1017 r"""Return the list of `~.lines.Line2D`\s in the legend."""
1018 return [h for h in self.legend_handles if isinstance(h, Line2D)]
1019
1020 def get_patches(self):
1021 r"""Return the list of `~.patches.Patch`\s in the legend."""

Callers 2

set_lines_visibilityMethod · 0.45
legend_picking.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected