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

Method get_legend

lib/matplotlib/axes/_base.py:2267–2269  ·  view source on GitHub ↗

Return the `.Legend` instance, or None if no legend is defined.

(self)

Source from the content-addressed store, hash-verified

2265 return lims
2266
2267 def get_legend(self):
2268 """Return the `.Legend` instance, or None if no legend is defined."""
2269 return self.legend_
2270
2271 def get_images(self):
2272 r"""Return a list of `.AxesImage`\s contained by the Axes."""

Callers 3

apply_callbackFunction · 0.80
test_legend_removeFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_legend_removeFunction · 0.64