I was wondering if there is any way to get the arrow directions (i.e. U
and V
) using the Axes
object after a matplotlib.pyplot.quiver
is plotted. For example:
fig, ax = plt.subplots()
plt.quiver(X=..., Y=..., U=..., V=...)
ax.collections[0].something_that_returns_UV?
I know that ax.collections[0].get_offsets()
would return the X
and Y
values, but I am interested in the U
and V
values instead.
Use case: automated testing of plots (example).