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

Function test_bad_masked_sizes

lib/matplotlib/tests/test_quiver.py:227–237  ·  view source on GitHub ↗

Test error handling when given differing sized masked arrays.

()

Source from the content-addressed store, hash-verified

225
226
227def test_bad_masked_sizes():
228 """Test error handling when given differing sized masked arrays."""
229 x = np.arange(3)
230 y = np.arange(3)
231 u = np.ma.array(15. * np.ones((4,)))
232 v = np.ma.array(15. * np.ones_like(u))
233 u[1] = np.ma.masked
234 v[1] = np.ma.masked
235 fig, ax = plt.subplots()
236 with pytest.raises(ValueError):
237 ax.barbs(x, y, u, v)
238
239
240def test_angles_and_scale():

Callers

nothing calls this directly

Calls 2

barbsMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…