MakieOrg / GeoMakie.jl

Geographical plotting utilities for Makie.jl
https://geo.makie.org
MIT License
161 stars 23 forks source link

Axis ticks/limits are not constrained by `axis.limits` #231

Open asinghvi17 opened 4 weeks ago

asinghvi17 commented 4 weeks ago

Consider the following:


fig = Figure(size=(1500, 1500))

settings = "+proj=leac +lat_1=45.0 +ellps=sphere "

ga = GeoAxis(
    fig[1, 1];
    dest=settings,
    title=settings,
)
lines!(ga, GeoMakie.coastlines())
ylims!(ga, 0, 90)
fig

download The screen limits are technically correct, but the ticks range further out which is not great.

asinghvi17 commented 2 weeks ago

The relevant code is here:

https://github.com/MakieOrg/GeoMakie.jl/blob/b7c0fdd369bdb5891928b4f3f915a2b64e2989b0/src/geoaxis.jl#L579-L603

basically, the limits being used are finallimits which works great for zooming, but doesn't take the axis's set limits into account.