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

Method get_patches

lib/matplotlib/legend.py:1020–1024  ·  view source on GitHub ↗

r"""Return the list of `~.patches.Patch`\s in the legend.

(self)

Source from the content-addressed store, hash-verified

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."""
1022 return silent_list('Patch',
1023 [h for h in self.legend_handles
1024 if isinstance(h, Patch)])
1025
1026 def get_texts(self):
1027 r"""Return the list of `~.text.Text`\s in the legend."""

Calls 1

silent_listClass · 0.90