Note

Go to the endto download the full example code.

quiver(X, Y, Z, U, V, W)#

Seequiver.

quiver3d simple
importmatplotlib.pyplotaspltimportnumpyasnpplt.style.use('_mpl-gallery')# Make datan=4x=np.linspace(-1,1,n)y=np.linspace(-1,1,n)z=np.linspace(-1,1,n)X,Y,Z=np.meshgrid(x,y,z)U=(X+Y)/5V=(Y-X)/5W=Z*0# Plotfig,ax=plt.subplots(subplot_kw={"projection":"3d"})ax.quiver(X,Y,Z,U,V,W)ax.set(xticklabels=[],yticklabels=[],zticklabels=[])plt.show()

Gallery generated by Sphinx-Gallery