Quiver

A field of arrows.

plot 04 quiver

Live figure — pick a tool, then zoom, pan, point-pick or annotate. Nothing is active until a tool is selected.

import numpy as np
import plotpress

g = np.linspace(-2, 2, 16)
X, Y = np.meshgrid(g, g)
U, V = -Y, X
fig, ax = plotpress.subplots()
ax.quiver(X, Y, U, V)
ax.set_aspect("equal"); ax.set_title("quiver")
fig.tight_layout()

Total running time of the script: (0 minutes 0.085 seconds)

Gallery generated by Sphinx-Gallery