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

Function test_quiver_key_pivot

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

Source from the content-addressed store, hash-verified

141
142@image_comparison(['quiver_key_pivot.png'], remove_text=True, style='mpl20')
143def test_quiver_key_pivot():
144 fig, ax = plt.subplots()
145
146 u, v = np.mgrid[0:2*np.pi:10j, 0:2*np.pi:10j]
147
148 q = ax.quiver(np.sin(u), np.cos(v))
149 ax.set_xlim(-2, 11)
150 ax.set_ylim(-2, 11)
151 ax.quiverkey(q, 0.5, 1, 1, 'N', labelpos='N')
152 ax.quiverkey(q, 1, 0.5, 1, 'E', labelpos='E')
153 ax.quiverkey(q, 0.5, 0, 1, 'S', labelpos='S')
154 ax.quiverkey(q, 0, 0.5, 1, 'W', labelpos='W')
155
156
157@image_comparison(['quiver_key_xy.png'], remove_text=True, style='_classic_test')

Callers

nothing calls this directly

Calls 5

quiverkeyMethod · 0.80
subplotsMethod · 0.45
quiverMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…