()
| 92 | |
| 93 | |
| 94 | def test_zero_headlength(): |
| 95 | # Based on report by Doug McNeil: |
| 96 | # https://discourse.matplotlib.org/t/quiver-warnings/16722 |
| 97 | fig, ax = plt.subplots() |
| 98 | X, Y = np.meshgrid(np.arange(10), np.arange(10)) |
| 99 | U, V = np.cos(X), np.sin(Y) |
| 100 | ax.quiver(U, V, headlength=0, headaxislength=0) |
| 101 | fig.canvas.draw() # Check that no warning is emitted. |
| 102 | |
| 103 | |
| 104 | @image_comparison(['quiver_animated_test_image.png'], style='mpl20') |