Test error handling when given differing sized masked arrays.
()
| 225 | |
| 226 | |
| 227 | def 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 | |
| 240 | def test_angles_and_scale(): |