()
| 47 | @image_comparison(['streamplot_linewidth.png'], remove_text=True, style='mpl20', |
| 48 | tol=0.03) |
| 49 | def test_linewidth(): |
| 50 | X, Y, U, V = velocity_field() |
| 51 | speed = np.hypot(U, V) |
| 52 | lw = 5 * speed / speed.max() |
| 53 | ax = plt.figure().subplots() |
| 54 | ax.streamplot(X, Y, U, V, density=[0.5, 1], color='k', linewidth=lw, num_arrows=2) |
| 55 | |
| 56 | |
| 57 | @image_comparison(['streamplot_masks_and_nans.png'], |
nothing calls this directly
no test coverage detected
searching dependent graphs…