MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_maxlength_no_broken

Function test_maxlength_no_broken

lib/matplotlib/tests/test_streamplot.py:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82@image_comparison(['streamplot_maxlength_no_broken.png'],
83 remove_text=True, style='mpl20', tol=0.302)
84def 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'],

Callers

nothing calls this directly

Calls 6

swirl_velocity_fieldFunction · 0.85
figureMethod · 0.80
subplotsMethod · 0.45
get_xlimMethod · 0.45
get_ylimMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…