# Shift label coordinates in GMT

**URL:** <https://discourse.julialang.org/t/shift-label-coordinates-in-gmt/127818>\
**Category:** Visualization\
**Tags:** gmt\
**Created:** [April 7, 2025, 8:30pm UTC](https://discourse.julialang.org/t/shift-label-coordinates-in-gmt/127818 "2025-04-07T20:30:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [April 7, 2025, 8:30pm UTC](https://discourse.julialang.org/t/shift-label-coordinates-in-gmt/127818/1 "2025-04-07T20:30:08Z")

</div>

Dear all,  
I have the code in `GMT`:

```julia
using GMT
pts_europa =[
	3.1420	48.9447 
	2.3522 48.8566 
	-0.1278 51.5074 
	-3.7038 40.4168 
	4.8357 45.7640 
	4.3517 50.8503 
	19.0402 47.4979 
	12.4964 41.8719 
	18.0683 59.3258 
	 16.3738 48.2082
]
nomes_europa = ["1","2","3","4","5","6","7","8","9","10"]
Forn_europa = mat2ds(pts_europa, nomes_europa);

mapa=coast(region=(-20, 50, 30, 65), 
      proj=:Mercator, 
      xaxis=(annot=10,ticks=5), 
      yaxis=(annot=10,ticks=5), 
      legend=(label="data",pos=:CT,box=:none, fontsize=10),
      area=:1000, 
      ocean=:lightblue,
      land=:lightbrown, 
      title="Mapa mundi com algumas fornecedores e serviços"
)

text!(Forn_europa,justify="LB", font="3p,Helvetica",angle=0,shift="5")
plot!(Forn_europa[[3,4],:])
plot!(Forn_europa[[4,5],:],linecolor=:blue)
plot!(Forn_europa, marker=:circle, markersize=0.1, markerfacecolor=:red, markeredgecolor=:black,show=true)

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/e/8e8db63a9601ffcdc44769f705afc8301925e51e.png)

where I plot some points. Work me perfectly. However, I cannot move the text above of each circle. How can I move these texts? Thank you for the help.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 7, 2025, 9:26pm UTC](https://discourse.julialang.org/t/shift-label-coordinates-in-gmt/127818/2 "2025-04-07T21:26:39Z")

</div>

The manual says that the `offset` option ` Offsets the text from the projected (x, y) point by shift=(dx, dy).`

However, I recently find a bug in GMT (the C lib) that prevents some forms of the documented options. Still, the simple form `offset=(dx,dy)` (`d`’s in cm) works fine.
