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

Function swirl_velocity_field

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

Source from the content-addressed store, hash-verified

14
15
16def swirl_velocity_field():
17 x = np.linspace(-3., 3., 200)
18 y = np.linspace(-3., 3., 100)
19 X, Y = np.meshgrid(x, y)
20 a = 0.1
21 U = np.cos(a) * (-Y) - np.sin(a) * X
22 V = np.sin(a) * (-Y) + np.cos(a) * X
23 return x, y, U, V
24
25
26@image_comparison(['streamplot_startpoints.png'], remove_text=True, style='mpl20',

Callers 3

test_maxlengthFunction · 0.85
test_maxlength_no_brokenFunction · 0.85
test_directionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…