# Quiver plot using PlotlyJS backend not showing arrowhead

**URL:** https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144
**Category:** Visualization
**Created:** [July 27, 2023, 6:15am UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144 "2023-07-27T06:15:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jinfreedom](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)
#### Post date: [July 27, 2023, 6:15am UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144/1 "2023-07-27T06:15:56Z")

</div>

Hi, I’m using `plotlyjs` backend to make a simple quiver plot, it looks like this

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/7/a76d6cb4f89eb0e7991f304b1c82fb226580442a.png)

where arrow heads are not shown. If I switch to `GR` I get the following wit arrow heads

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/f/bf7df572b2564d894ef437bdd7bf412961c9c340.png)

So how do I make arrow heads shown with `plotlyjs`? I tried `arrow=0.1`, `arrow=true` etc. without any luck. I searched and couldn’t find any answer.

If not possible under `plotlyjs’, under ‘gr’ how can I change style and size of the arrow heads?  
Thanks

---

<div class="post-metadata">

### Author: ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)
#### Post date: [July 27, 2023, 7:20am UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144/2 "2023-07-27T07:20:32Z")

</div>

I also noticed that, see [[BUG] `quiver` plots show no arrow heads with `plotlyjs()` · Issue #4593 · JuliaPlots/Plots.jl · GitHub](https://github.com/JuliaPlots/Plots.jl/issues/4593)

In one of our projects, we used a workaround - we just used an older version of Plots.jl but then needed to implement some workarounds for other problems locally, see [https://github.com/ranocha/2023\_modeling\_matters/blob/80f121be311dbf90cf3d5bd49a69d74657a48b6b/notebook.jl#L914-L921](https://github.com/ranocha/2023_modeling_matters/blob/80f121be311dbf90cf3d5bd49a69d74657a48b6b/notebook.jl#L914-L921)

---

<div class="post-metadata">

### Author: ![karei](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/karei/32/214809_2.png) [@karei](https://discourse.julialang.org/u/karei)
#### Post date: [February 21, 2025, 2:22pm UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144/3 "2025-02-21T14:22:46Z")

</div>

I had the same problem recently, so I’m bringing this post back up. Now the time is February 2025, and the issue is still unresolved. 😢

```julia
using Plots
plotlyjs()
quiver(0, 0, quiver=(1, 1), arrow=:closed)

```

gives you an empty plot.

---

<div class="post-metadata">

### Author: ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)
#### Post date: [February 21, 2025, 4:08pm UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144/4 "2025-02-21T16:08:59Z")

</div>

This is more of an upstream issue in the julia PlotlyJS package (there is no standard quiver plot even in the main JavaScript library, they only have a python workaround fully relying internally on plain scatter plots).

See this relevant issue from the PlotlyJS.jl repository:

> <https://github.com/JuliaPlots/PlotlyJS.jl/issues/230>
>
> Hello, 
> 
> is there any way to produce 2d quiver plots with PlotlyJS? For instan…ce something like this: https://plot.ly/python/quiver-plots/
> 
> Thanks!

Until this feature is available in the backend itself, there is really nothing the Plots package can do to enable this

---

<div class="post-metadata">

### Author: ![karei](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/karei/32/214809_2.png) [@karei](https://discourse.julialang.org/u/karei)
#### Post date: [February 22, 2025, 2:16am UTC](https://discourse.julialang.org/t/quiver-plot-using-plotlyjs-backend-not-showing-arrowhead/102144/5 "2025-02-22T02:16:07Z")

</div>

Thank you for providing accurate information on the source of the problem. I understand.
