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

Function test_linewidth

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

Source from the content-addressed store, hash-verified

47@image_comparison(['streamplot_linewidth.png'], remove_text=True, style='mpl20',
48 tol=0.03)
49def 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'],

Callers

nothing calls this directly

Calls 4

velocity_fieldFunction · 0.85
maxMethod · 0.80
figureMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…