# Legends for psvelo and geovectors in GMT 6

**URL:** <https://forum.generic-mapping-tools.org/t/legends-for-psvelo-and-geovectors-in-gmt-6/2005>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [August 19, 2021, 3:49am UTC](https://forum.generic-mapping-tools.org/t/legends-for-psvelo-and-geovectors-in-gmt-6/2005 "2021-08-19T03:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adigitoleo](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/adigitoleo/32/1475_2.png) [@adigitoleo](https://forum.generic-mapping-tools.org/u/adigitoleo)\
**Post date:** [August 19, 2021, 3:49am UTC](https://forum.generic-mapping-tools.org/t/legends-for-psvelo-and-geovectors-in-gmt-6/2005/1 "2021-08-19T03:49:03Z")

</div>

GMT version 6.1.1

I’m trying to plot `psvelo` and geovector plots using modern GMT syntax, with a legend for multiple distinct datasets:

```auto
gmt begin legend_mwe
    gmt psbasemap -R110/210/-40/40 -JM14c -Baf -BWSen
    gmt psvelo GSRMv2platemotion.dat -Se0.01/0.95 -W0.5p,dimgray -A5p+h0.5+gdimgray+e
    gmt psxy sws.dat -S=+jc -W2p,black
    # Legend for the plate motion magnitudes and the shear wave splitting delay times?
    gmt pslegend -Dx1c/1c+w4c -F <<EOF
# delay time of 2s is equivalent to length of 666
# 50 mm/yr is equivalent to 0.5
S 2p = 666 black 2p 2p 2s delay time
S 2p e 0.5 black 2p 2p 50mm/yr
EOF
gmt end show

```

Sample datasets with fake shear-wave splitting data are attached:[GSRMv2platemotion.dat](https://forum.generic-mapping-tools.org/uploads/short-url/h7oSq40Rs9wCSNzLP5ImhRRgfyZ.dat) (4.1 KB) [sws.dat](https://forum.generic-mapping-tools.org/uploads/short-url/a0yYUSez1SgJfomK0GTgnk6k3ss.dat) (46 Bytes) .

I have tried various incantations for both `pslegend` and `legend` but I’m not getting what I want, which is a simple legend with two representative vector magnitudes. I think the `e` symbol is reserved for ellipses – are `psvelo` legends not available? I read elsewhere that someone was using a manual `psvelo` + `pstext` construct instead. However, the geovectors (`=`) are apprently supported according to my reading of the docs, but I couldn’t find any examples using them.

Any examples or hints for this case?

Cheers,  
Leon

---

<div class="post-metadata">

**Author:** ![adigitoleo](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/adigitoleo/32/1475_2.png) [@adigitoleo](https://forum.generic-mapping-tools.org/u/adigitoleo)\
**Post date:** [September 24, 2021, 1:23am UTC](https://forum.generic-mapping-tools.org/t/legends-for-psvelo-and-geovectors-in-gmt-6/2005/2 "2021-09-24T01:23:42Z")

</div>

~~As a quick follow-up to this: are geographical units supported in the legend file at all? Any example of how to make a legend with symbols scaled the same as on a geographical map? Cheers.~~

Edit: actually, I just realised that this is a bad idea. The symbol scale will depend on its position on the map (in most projections) so there’s no way to make a legend that says “this is what that particular symbol size means”. I’ll move to something else instead of geovectors for this case.

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [September 24, 2021, 2:46am UTC](https://forum.generic-mapping-tools.org/t/legends-for-psvelo-and-geovectors-in-gmt-6/2005/3 "2021-09-24T02:46:42Z")

</div>

You can always say “10 m/s at 45ºN” or something like that…
