Is Pyplot backend able to draw vectors in 3D?

For headless arrows, here is a simple way:

using Plots; pyplot()

extract(P,V) = [ [P[1], V[1]], [P[2], V[2]], [P[3], V[3]] ]

P, xc, yc, zc = [0,0,0], [0,0,1], [0,1,0], [1,0,0]

plot(extract(P, P+xc)..., camera=(-30,30))
plot!(extract(P, P+yc)...)
plot!(extract(P, P+zc)...)
1 Like