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

Function test_barbs

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

Source from the content-addressed store, hash-verified

180
181@image_comparison(['barbs_test_image.png'], remove_text=True, style='_classic_test')
182def test_barbs():
183 x = np.linspace(-5, 5, 5)
184 X, Y = np.meshgrid(x, x)
185 U, V = 12*X, 12*Y
186 fig, ax = plt.subplots()
187 ax.barbs(X, Y, U, V, np.hypot(U, V), fill_empty=True, rounding=False,
188 sizes=dict(emptybarb=0.25, spacing=0.2, height=0.3),
189 cmap='viridis')
190
191
192@image_comparison(['barbs_pivot_test_image.png'], remove_text=True,

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…