# Axis tick label position in GeoMakie

**URL:** <https://discourse.julialang.org/t/axis-tick-label-position-in-geomakie/106588>\
**Category:** Geo\
**Tags:** makie, geomakie\
**Created:** [November 22, 2023, 5:53pm UTC](https://discourse.julialang.org/t/axis-tick-label-position-in-geomakie/106588 "2023-11-22T17:53:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gravlax](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Post date:** [November 22, 2023, 5:53pm UTC](https://discourse.julialang.org/t/axis-tick-label-position-in-geomakie/106588/1 "2023-11-22T17:53:49Z")

</div>

I am currently trying out GeoMakie. I have an issue with axis tick labels appearing on the axis or inside the figure.

Is there an a simple way to simply shift all x position of y ticks and all y position of x tick or does one need to fully do it manually (as in [here](https://discourse.julialang.org/t/how-to-tweak-tick-label-position-in-makie/60085))?

Here’s an example:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/d/4d42b6f67626715836825c72ae4b22797fc90162.jpeg)

… and a data-free MWE:

```julia
using GeoMakie
function MWE()
    x = LinRange(44., 48., 100)
    y = LinRange( 7., 8., 100)
    fig = Figure()
    ax = GeoAxis(fig[1, 1], 
        xlabel = L"Longitude [$\degree$]", 
        ylabel = L"Latitute [$\degree$]", 
        lonlims = (minimum(x), maximum(x)), 
        latlims = (minimum(y), maximum(y)),
        xlabelsize=20, ylabelsize=20, xticklabelsize=20, yticklabelsize=20
        )
    image!(ax, x, y, zeros(length(x), length(y)))
    ax.aspect = ((x[end]-x[begin])/ (y[end]-y[begin]))
    display(fig)
end
MWE()

```

EDIT: The solution presented [there](https://discourse.julialang.org/t/how-to-tweak-tick-label-position-in-makie/60085) based on `xticklabelalign` does not appear to work any longer.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [January 15, 2024, 4:51pm UTC](https://discourse.julialang.org/t/axis-tick-label-position-in-geomakie/106588/2 "2024-01-15T16:51:48Z")

</div>

Hi @Gravlax !

I am having the same problem! Did you find any work around?

I opened an issue in GeoMakie.jl project:

> <https://github.com/MakieOrg/GeoMakie.jl/issues/190>
>
> Hi!
> 
> The following code:
> 
> \`\`\`julia
> fig = Figure(; size = (800, 800), kw…args...)
> 
> ax = GeoAxis(
> fig\[1, 1\],
> aspect = nothing,
> xlabel = "Longitude \[°\]",
> xlabelsize = 26,
> xticklabelsize = 28,
> ylabel = "Latitude \[°\]",
> ylabelsize = 26,
> yticklabelsize = 28,
> title = "Ground Trace",
> titlegap = 16,
> titlesize = 28,
> dest = "+proj=ortho", # the CRS in which you want to plot
> )
> 
> lp = lines!(ax, GeoMakie.coastlines(); transformation = (; translation = (0, 0, 1)))
> \`\`\`
> 
> returns this figure:
> 
> \<img width="765" alt="Captura de Tela 2024-01-15 às 13 44 05" src="https://github.com/MakieOrg/GeoMakie.jl/assets/1068295/6e3095fb-6d02-4cbf-8082-f211ea57a9a6"\>
> 
> Notice that the ticks are inside the plot, which should not happen. I tried everyone configuration described in Makie.jl manual to adjust the tick padding but none of them worked.
