| 141 | |
| 142 | @image_comparison(['quiver_key_pivot.png'], remove_text=True, style='mpl20') |
| 143 | def 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') |