()
| 238 | |
| 239 | |
| 240 | def test_angles_and_scale(): |
| 241 | # angles array + scale_units kwarg |
| 242 | fig, ax = plt.subplots() |
| 243 | X, Y = np.meshgrid(np.arange(15), np.arange(10)) |
| 244 | U = V = np.ones_like(X) |
| 245 | phi = (np.random.rand(15, 10) - .5) * 150 |
| 246 | ax.quiver(X, Y, U, V, angles=phi, scale_units='xy') |
| 247 | |
| 248 | |
| 249 | @image_comparison(['quiver_xy.png'], remove_text=True, style='_classic_test') |