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

Function test_legend_nolabels_draw

lib/matplotlib/tests/test_legend.py:1592–1595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1590
1591@pytest.mark.filterwarnings("ignore:No artists with labels found to put in legend")
1592def test_legend_nolabels_draw():
1593 plt.plot([1, 2, 3])
1594 plt.legend()
1595 assert plt.gca().get_legend() is not None
1596
1597
1598def test_legend_loc_polycollection():

Callers

nothing calls this directly

Calls 4

get_legendMethod · 0.80
gcaMethod · 0.80
plotMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…