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

Function test_barb_copy

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

Source from the content-addressed store, hash-verified

214
215
216def test_barb_copy():
217 fig, ax = plt.subplots()
218 u = np.array([1.1])
219 v = np.array([2.2])
220 b0 = ax.barbs([1], [1], u, v)
221 u[0] = 0
222 assert b0.u[0] == 1.1
223 v[0] = 0
224 assert b0.v[0] == 2.2
225
226
227def test_bad_masked_sizes():

Callers

nothing calls this directly

Calls 2

barbsMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…