()
| 26 | @image_comparison(['streamplot_startpoints.png'], remove_text=True, style='mpl20', |
| 27 | tol=0.003) |
| 28 | def test_startpoints(): |
| 29 | # Test varying startpoints. Also tests a non-default num_arrows argument. |
| 30 | X, Y, U, V = velocity_field() |
| 31 | start_x, start_y = np.meshgrid(np.linspace(X.min(), X.max(), 5), |
| 32 | np.linspace(Y.min(), Y.max(), 5)) |
| 33 | start_points = np.column_stack([start_x.ravel(), start_y.ravel()]) |
| 34 | plt.streamplot(X, Y, U, V, start_points=start_points, num_arrows=4) |
| 35 | plt.plot(start_x, start_y, 'ok') |
| 36 | |
| 37 | |
| 38 | @image_comparison(['streamplot_colormap.png'], remove_text=True, style='mpl20', |
nothing calls this directly
no test coverage detected
searching dependent graphs…