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

Function test_quiver_arg_sizes

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

Source from the content-addressed store, hash-verified

62
63
64def test_quiver_arg_sizes():
65 X2 = [1, 2]
66 X3 = [1, 2, 3]
67 with pytest.raises(
68 ValueError, match=('X and Y must be the same size, but '
69 'X.size is 2 and Y.size is 3.')):
70 plt.quiver(X2, X3, X2, X2)
71 with pytest.raises(
72 ValueError, match=('Argument U has a size 3 which does not match '
73 '2, the number of arrow positions')):
74 plt.quiver(X2, X2, X3, X2)
75 with pytest.raises(
76 ValueError, match=('Argument V has a size 3 which does not match '
77 '2, the number of arrow positions')):
78 plt.quiver(X2, X2, X2, X3)
79 with pytest.raises(
80 ValueError, match=('Argument C has a size 3 which does not match '
81 '2, the number of arrow positions')):
82 plt.quiver(X2, X2, X2, X2, X3)
83
84
85def test_no_warnings():

Callers

nothing calls this directly

Calls 1

quiverMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…