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

Function test_legend_title_empty

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

Source from the content-addressed store, hash-verified

706
707
708def test_legend_title_empty():
709 # test that if we don't set the legend title, that
710 # it comes back as an empty string, and that it is not
711 # visible:
712 fig, ax = plt.subplots()
713 ax.plot(range(10), label="mock data")
714 leg = ax.legend()
715 assert leg.get_title().get_text() == ""
716 assert not leg.get_title().get_visible()
717
718
719def test_legend_proper_window_extent():

Callers

nothing calls this directly

Calls 6

subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45
get_textMethod · 0.45
get_titleMethod · 0.45
get_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…