# How to draw arrows in 3D with Plots.jl?

**URL:** <https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622>\
**Category:** Visualization\
**Tags:** question, plotting, plots, 3d\
**Created:** [May 10, 2017, 1:44am UTC](https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622 "2017-05-10T01:44:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [May 10, 2017, 1:44am UTC](https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622/1 "2017-05-10T01:44:29Z")

</div>

How would you plot a velocity field in 3D assuming that we have the positions in a 3xn matrix P and the velocities in a 3xn matrix V?

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [May 10, 2017, 4:52am UTC](https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622/2 "2017-05-10T04:52:14Z")

</div>

X-ref:

> [@Plot 3d vector field](https://discourse.julialang.org/t/plot-3d-vector-field/2117):
>
> I would like to plot a 3d vector field (e.g. a couple of points with arrows attached), with some basic interactivity (rotatate, zoom, pan). What are my options to do this in julia? Are there some example codes with 3d vector fields? Is it possible with Plots.jl?

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [May 10, 2017, 5:12am UTC](https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622/3 "2017-05-10T05:12:59Z")

</div>

Thank you @Gnimuc, the link presents a solution with PyPlot.jl, that is easy. I am wondering what is the equivalent in Plots.jl.

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [May 10, 2017, 5:30am UTC](https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622/4 "2017-05-10T05:30:49Z")

</div>

It seems the implementation of `3D quiver` is still missing in Plots.jl:  
[https://github.com/JuliaPlots/Plots.jl/issues/319#issue-159652535](https://github.com/JuliaPlots/Plots.jl/issues/319#issue-159652535)

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [May 10, 2017, 6:37am UTC](https://discourse.julialang.org/t/how-to-draw-arrows-in-3d-with-plots-jl/3622/5 "2017-05-10T06:37:27Z")

</div>

Thanks for sharing. Perhaps arrows could be drawn with annotations instead? I will hack a solution meanwhile.
