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

Function test_barbs_flip

lib/matplotlib/tests/test_quiver.py:205–213  ·  view source on GitHub ↗

Test barbs with an array for flip_barb.

()

Source from the content-addressed store, hash-verified

203
204@image_comparison(['barbs_test_flip.png'], remove_text=True, style='_classic_test')
205def test_barbs_flip():
206 """Test barbs with an array for flip_barb."""
207 x = np.linspace(-5, 5, 5)
208 X, Y = np.meshgrid(x, x)
209 U, V = 12*X, 12*Y
210 fig, ax = plt.subplots()
211 ax.barbs(X, Y, U, V, fill_empty=True, rounding=False, pivot=1.7,
212 sizes=dict(emptybarb=0.25, spacing=0.2, height=0.3),
213 flip_barb=Y < 0)
214
215
216def test_barb_copy():

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…