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

Function test_angles_and_scale

lib/matplotlib/tests/test_quiver.py:240–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238
239
240def test_angles_and_scale():
241 # angles array + scale_units kwarg
242 fig, ax = plt.subplots()
243 X, Y = np.meshgrid(np.arange(15), np.arange(10))
244 U = V = np.ones_like(X)
245 phi = (np.random.rand(15, 10) - .5) * 150
246 ax.quiver(X, Y, U, V, angles=phi, scale_units='xy')
247
248
249@image_comparison(['quiver_xy.png'], remove_text=True, style='_classic_test')

Callers

nothing calls this directly

Calls 2

subplotsMethod · 0.45
quiverMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…