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

Function test_piecontainer_remove

lib/matplotlib/tests/test_container.py:58–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_piecontainer_remove():
59 fig, ax = plt.subplots()
60 pie = ax.pie([2, 3], labels=['foo', 'bar'], autopct="%1.0f%%")
61 ax.pie_label(pie, ['baz', 'qux'])
62 assert len(ax.patches) == 2
63 assert len(ax.texts) == 6
64
65 pie.remove()
66 assert not ax.patches
67 assert not ax.texts
68
69
70def test_piecontainer_unpack_backcompat():

Callers

nothing calls this directly

Calls 4

pieMethod · 0.80
pie_labelMethod · 0.80
subplotsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…