| 82 | @image_comparison(['streamplot_maxlength_no_broken.png'], |
| 83 | remove_text=True, style='mpl20', tol=0.302) |
| 84 | def test_maxlength_no_broken(): |
| 85 | x, y, U, V = swirl_velocity_field() |
| 86 | ax = plt.figure().subplots() |
| 87 | ax.streamplot(x, y, U, V, maxlength=10., start_points=[[0., 1.5]], |
| 88 | linewidth=2, density=2, broken_streamlines=False) |
| 89 | assert ax.get_xlim()[-1] == ax.get_ylim()[-1] == 3 |
| 90 | # Compatibility for old test image |
| 91 | ax.set(xlim=(None, 3.2555988021882305), ylim=(None, 3.078326760195413)) |
| 92 | |
| 93 | |
| 94 | @image_comparison(['streamplot_direction.png'], |