# Symbols near marks

**URL:** <https://forum.generic-mapping-tools.org/t/symbols-near-marks/2280>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [November 9, 2021, 10:22am UTC](https://forum.generic-mapping-tools.org/t/symbols-near-marks/2280 "2021-11-09T10:22:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraneBoba](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@CraneBoba](https://forum.generic-mapping-tools.org/u/CraneBoba)\
**Post date:** [November 9, 2021, 10:22am UTC](https://forum.generic-mapping-tools.org/t/symbols-near-marks/2280/1 "2021-11-09T10:22:39Z")

</div>

Let I have 2 files with coordinates of cities and ststions  
How could I place abriviations names for each point?  
File with coordinates looks like this  
68.78,38.54  
69,39.91  
70.43,40.29  
69.78,37.91  
If I add short name for example 68.78,38.54, Dush  
How could I place this text near triangle?

 ![evmap](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/4/467a0c31076ca6998f7801f5b98b64ab3da54971.png)

gmt coast -Gwhite -RTJ -JM6i -S0/200/255 -U -I9/0/0/254 -I4/0/0/64 -I5/0/0/254 -I3/0/0/254 -I1/0/0/254 -I2/0/0/254 -B  
gmt plot tjkgmap.csv -RTJ -JM6i -Sc0.1 -G0/254/0 -L -V -B  
gmt plot tadjcities.txt -RTJ -JM6i -St0.4 -G255/0/254 -L -V -B  
gmt plot sttjlst.csv -RTJ -JM6i -St0.2 -G0/0/254 -L -V -B  
gmt end show

---

<div class="post-metadata">

**Author:** ![biggle1856](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/biggle1856/32/3169_2.png) [@biggle1856](https://forum.generic-mapping-tools.org/u/biggle1856)\
**Post date:** [November 9, 2021, 12:11pm UTC](https://forum.generic-mapping-tools.org/t/symbols-near-marks/2280/2 "2021-11-09T12:11:12Z")

</div>

suggest you read the gmt (ps)text man page  
gmt text [file with points and text] -F+a0+jML+f[font spec]  
offset by using the -D option

---

<div class="post-metadata">

**Author:** ![CraneBoba](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@CraneBoba](https://forum.generic-mapping-tools.org/u/CraneBoba)\
**Post date:** [March 11, 2022, 8:24am UTC](https://forum.generic-mapping-tools.org/t/symbols-near-marks/2280/3 "2022-03-11T08:24:09Z")

</div>

Thanks, but I failed to follow your advice  
gmt begin diffmap png  
gmt text stt.txt -F+a0+jML -D  
gmt end show

Error not a valid number and may not be decoded properly.  
The text fille stt.txt looks like this  
69.158203,38.656898,‘CHGR’  
69.670998,40.386700,‘CHRDR’  
68.780998,38.568802,‘DUSH’  
70.316002,39.000000,‘GARM’  
67.715401,39.283298,‘GEZN’  
69.326599,38.220299,‘IGRN’  
71.660004,37.529999,‘MANEM’  
68.122803,37.562000,‘SHAA’

---

<div class="post-metadata">

**Author:** ![CraneBoba](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@CraneBoba](https://forum.generic-mapping-tools.org/u/CraneBoba)\
**Post date:** [March 11, 2022, 8:29am UTC](https://forum.generic-mapping-tools.org/t/symbols-near-marks/2280/4 "2022-03-11T08:29:19Z")

</div>

> [@CraneBoba](#):
>
> gmt begin diffmap png  
> gmt text stt.txt -F+a0+jML -D  
> gmt end show

Sorry I added -RTJ and it worked  
I need to find only right fonts option
