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

Function test_shadow_framealpha

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

Source from the content-addressed store, hash-verified

697
698
699def test_shadow_framealpha():
700 # Test if framealpha is activated when shadow is True
701 # and framealpha is not explicitly passed'''
702 fig, ax = plt.subplots()
703 ax.plot(range(100), label="test")
704 leg = ax.legend(shadow=True, facecolor='w')
705 assert leg.get_frame().get_alpha() == 1
706
707
708def test_legend_title_empty():

Callers

nothing calls this directly

Calls 5

get_frameMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45
get_alphaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…