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

Function test_no_warnings

lib/matplotlib/tests/test_quiver.py:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def test_no_warnings():
86 fig, ax = plt.subplots()
87 X, Y = np.meshgrid(np.arange(15), np.arange(10))
88 U = V = np.ones_like(X)
89 phi = (np.random.rand(15, 10) - .5) * 150
90 ax.quiver(X, Y, U, V, angles=phi)
91 fig.canvas.draw() # Check that no warning is emitted.
92
93
94def test_zero_headlength():

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
quiverMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…