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

Function test_contour_remove

lib/matplotlib/tests/test_contour.py:803–810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

801
802
803def test_contour_remove():
804 ax = plt.figure().add_subplot()
805 orig_children = ax.get_children()
806 cs = ax.contour(np.arange(16).reshape((4, 4)))
807 cs.clabel()
808 assert ax.get_children() != orig_children
809 cs.remove()
810 assert ax.get_children() == orig_children
811
812
813def test_contour_remove_with_labels():

Callers

nothing calls this directly

Calls 6

add_subplotMethod · 0.80
figureMethod · 0.80
get_childrenMethod · 0.45
contourMethod · 0.45
clabelMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…