()
| 180 | |
| 181 | @image_comparison(['barbs_test_image.png'], remove_text=True, style='_classic_test') |
| 182 | def test_barbs(): |
| 183 | x = np.linspace(-5, 5, 5) |
| 184 | X, Y = np.meshgrid(x, x) |
| 185 | U, V = 12*X, 12*Y |
| 186 | fig, ax = plt.subplots() |
| 187 | ax.barbs(X, Y, U, V, np.hypot(U, V), fill_empty=True, rounding=False, |
| 188 | sizes=dict(emptybarb=0.25, spacing=0.2, height=0.3), |
| 189 | cmap='viridis') |
| 190 | |
| 191 | |
| 192 | @image_comparison(['barbs_pivot_test_image.png'], remove_text=True, |