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

Function test_startpoints

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

Source from the content-addressed store, hash-verified

26@image_comparison(['streamplot_startpoints.png'], remove_text=True, style='mpl20',
27 tol=0.003)
28def 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',

Callers

nothing calls this directly

Calls 4

velocity_fieldFunction · 0.85
minMethod · 0.80
maxMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…