# Two arrows

**URL:** https://discourse.julialang.org/t/two-arrows/107453
**Category:** Visualization
**Created:** [December 11, 2023, 3:54pm UTC](https://discourse.julialang.org/t/two-arrows/107453 "2023-12-11T15:54:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)
#### Post date: [December 11, 2023, 3:54pm UTC](https://discourse.julialang.org/t/two-arrows/107453/1 "2023-12-11T15:54:54Z")

</div>

Can anyone please show how to create a simplest plot with **two** arrows using Makie.arrow? Documentation here [arrows · Makie](https://docs.makie.org/stable/reference/plots/arrows/) is written at really advance level.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 11, 2023, 4:01pm UTC](https://discourse.julialang.org/t/two-arrows/107453/2 "2023-12-11T16:01:36Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/0/3/039d4f99d3afc4ba9d5e0df973219f672cbf9322.png)

---

<div class="post-metadata">

### Author: ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)
#### Post date: [December 11, 2023, 4:12pm UTC](https://discourse.julialang.org/t/two-arrows/107453/3 "2023-12-11T16:12:49Z")

</div>

Thanks!  
But … what does it mean? It doesn’t look like xstart, xend, ystart, yend

---

<div class="post-metadata">

### Author: ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)
#### Post date: [December 11, 2023, 4:15pm UTC](https://discourse.julialang.org/t/two-arrows/107453/4 "2023-12-11T16:15:59Z")

</div>

It’s start + direction:

```julia
xstart = [Point2f(0), Point2f(1)]
xdir = [Vec2f(1, 0.5), Vec2f(1, 2)]
arrows(xstart, xdir)

```

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

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 11, 2023, 4:51pm UTC](https://discourse.julialang.org/t/two-arrows/107453/5 "2023-12-11T16:51:55Z")

</div>

Sorry you asked for two arrows, which is always more confusing!

In my example you read allt he first numbers for the first arrow:

1 (x-coordinate starting point)  
1 (y-coordinate starting point)  
1 (move in x direction)  
3 (move in y direction)  
so in total - start an arrow from (1, 1) and go to (1+1, 1+3) = (2, 4).

The second arrow is then (2, 2) to (4, 6)
