# Can't create fat arrows with modern psvelo / velo

**URL:** <https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705>\
**Category:** Q&A\
**Created:** [July 24, 2020, 2:49am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705 "2020-07-24T02:49:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericlindsey](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ericlindsey/32/461_2.png) [@ericlindsey](https://forum.generic-mapping-tools.org/u/ericlindsey)\
**Post date:** [July 24, 2020, 2:49am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/1 "2020-07-24T02:49:18Z")

</div>

The ‘classic’ style of psvelo has a nice option for specifying arrow width. For example, here is how I create a ‘fat’ arrow with a black outline all the way around it:

```
echo "0 0 1 0 0 0 0" |gmt psvelo -JX5i -Rg -W1p -L -Se3/0/1 -A0.15/0.8/0.2 -Gred > test_classic.ps
gmt psconvert -A1p -Tf test_classic.ps
open test_classic.pdf

```

I can’t find a way to do the same thing in ‘modern’ mode, because the GMT4-era options for -A ( **−A** _Arrow\_width/Head\_length/Head\_width_) are no longer allowed. Now I must use the modern method that has no option for body width. I can control the head width/shape, but not the width of the main body except by making the outline pen thick (+p) - but then I lose the nice thin black outline and it just becomes a black arrow. But I figure it must be possible, somehow. How to fix this ‘modern’ code (below) to look like the classic case above?

```
gmt begin
gmt figure test_modern pdf A1p
echo "0 0 1 0 0 0 0" |gmt psvelo -JX5i -Rg -W1p -L -Se3/0/1 -A20p+e+gred+h0.5
gmt end
open test_modern.pdf
```

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [July 24, 2020, 3:34am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/2 "2020-07-24T03:34:53Z")

</div>

See +a for setting the apex angle [30 degrees I think]

---

<div class="post-metadata">

**Author:** ![ericlindsey](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ericlindsey/32/461_2.png) [@ericlindsey](https://forum.generic-mapping-tools.org/u/ericlindsey)\
**Post date:** [July 24, 2020, 3:46am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/3 "2020-07-24T03:46:28Z")

</div>

The modern options are nicer for setting the head properties, yes, but I can’t figure out how to widen the body (i.e. the stem) of the arrow while keeping an outline around the whole thing.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [July 24, 2020, 4:22am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/4 "2020-07-24T04:22:19Z")

</div>

I see. No, the old-style -A is still there for those who insists. It just never occurred to us (!) that anyone would prefer the old polygon Cartesian arrows… We added them back to psxy (and never removed them from velo I think). So your old-style -A should still work - if not then please give a small example that fails. But I think geographic vectors should be great circle lines with arrow heads and not Cartesian polygons. I just looked and both the man pages for psxy and velo explains the old GMT 4 arrow format at the end.

---

<div class="post-metadata">

**Author:** ![ericlindsey](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ericlindsey/32/461_2.png) [@ericlindsey](https://forum.generic-mapping-tools.org/u/ericlindsey)\
**Post date:** [July 24, 2020, 8:32am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/5 "2020-07-24T08:32:29Z")

</div>

Thanks, glad to know it is still intended to be available and not deprecated! I can’t get it to work with velo though, GMT throws the error _0.2/1/0.3 not a valid number_. Minimal example that fails:

```
gmt begin
gmt figure test_modern pdf A1p
echo "0 0 1 0 0 0 0" |gmt velo -JX5i -Rg -W1p -L -Se3/0/1 -A0.2/1/0.3
gmt end
open test_modern.pdf

```

The man page discussion in velo appears copied from psxy (it mentions -Sv|V). This arrow style does still work for me in psxy but I need the error ellipses provided by velo.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [July 24, 2020, 11:53am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/6 "2020-07-24T11:53:46Z")

</div>

Funny, if I run your example as a one liner (no quotes of echo args on Windows), it works fine

```auto
echo 0 0 1 0 0 0 0 | gmt velo -JX5i -Rg -W1p -L -Se3/0/1 -A0.2/1/0.3 -png lixo

```

---

<div class="post-metadata">

**Author:** ![ndago](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@ndago](https://forum.generic-mapping-tools.org/u/ndago)\
**Post date:** [January 1, 2021, 10:17am UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/7 "2021-01-01T10:17:00Z")

</div>

Hi  
the new -A options on arrowhead are fine. Thanks a lot !!  
On the other hand I cannot increase the width of the arrow (with -W) without  
simultaneously increasing the pen width of the error ellipse.  
Attached example.  
Maybe separate pen parameters for the ellipse ?  
happy new year  
best  
Nicola

echo 0 0 1 0 0.1 0.1 0 | gmt velo -JX5i -Rg -W3p -L -Se1/0.95/1 -A15p+g0+e+h0.5 -png lixo

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [January 1, 2021, 7:31pm UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/8 "2021-01-01T19:31:44Z")

</div>

Did you try adding **+p** _pen_ to the option?

---

<div class="post-metadata">

**Author:** ![renierlgv](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@renierlgv](https://forum.generic-mapping-tools.org/u/renierlgv)\
**Post date:** [May 30, 2022, 12:30pm UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/9 "2022-05-30T12:30:19Z")

</div>

Use -L(your width),(your color). Otherwise those in -W will be used

---

<div class="post-metadata">

**Author:** ![renierlgv](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@renierlgv](https://forum.generic-mapping-tools.org/u/renierlgv)\
**Post date:** [May 30, 2022, 12:33pm UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/10 "2022-05-30T12:33:06Z")

</div>

For those attached to the past, do you know how to make it work in Pygmt?

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 30, 2022, 7:46pm UTC](https://forum.generic-mapping-tools.org/t/cant-create-fat-arrows-with-modern-psvelo-velo/705/11 "2022-05-30T19:46:54Z")

</div>

No, but someone from the PyGMT team will eventually get back to you - holiday in the US this long weekend.
