메모
전체 예제 코드를 다운로드 하려면 여기 를 클릭 하십시오.
떨림(X, Y, U, V) #
참조하십시오 quiver
.
![떨림](/stable/_images/sphx_glr_quiver_001.png)
import matplotlib.pyplot as plt
import numpy as np
plt.style.use('_mpl-gallery-nogrid')
# make data
x = np.linspace(-4, 4, 6)
y = np.linspace(-4, 4, 6)
X, Y = np.meshgrid(x, y)
U = X + Y
V = Y - X
# plot
fig, ax = plt.subplots()
ax.quiver(X, Y, U, V, color="C0", angles='xy',
scale_units='xy', scale=5, width=.015)
ax.set(xlim=(-5, 5), ylim=(-5, 5))
plt.show()