()
| 192 | @image_comparison(['barbs_pivot_test_image.png'], remove_text=True, |
| 193 | style='_classic_test') |
| 194 | def test_barbs_pivot(): |
| 195 | x = np.linspace(-5, 5, 5) |
| 196 | X, Y = np.meshgrid(x, x) |
| 197 | U, V = 12*X, 12*Y |
| 198 | fig, ax = plt.subplots() |
| 199 | ax.barbs(X, Y, U, V, fill_empty=True, rounding=False, pivot=1.7, |
| 200 | sizes=dict(emptybarb=0.25, spacing=0.2, height=0.3)) |
| 201 | ax.scatter(X, Y, s=49, c='black') |
| 202 | |
| 203 | |
| 204 | @image_comparison(['barbs_test_flip.png'], remove_text=True, style='_classic_test') |