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

Function test_contour_no_valid_levels

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

Source from the content-addressed store, hash-verified

65
66
67def test_contour_no_valid_levels():
68 fig, ax = plt.subplots()
69 # no warning for empty levels.
70 ax.contour(np.random.rand(9, 9), levels=[])
71 # no warning if levels is given and is not within the range of z.
72 cs = ax.contour(np.arange(81).reshape((9, 9)), levels=[100])
73 # ... and if fmt is given.
74 ax.clabel(cs, fmt={100: '%1.2f'})
75 # no warning if z is uniform.
76 ax.contour(np.ones((9, 9)))
77
78
79def test_contour_Nlevels():

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
contourMethod · 0.45
clabelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…