Mysterious gap on my GeoMakie plot

Here is my code:

File_fig = joinpath(output_path, "map.png");  isfile(File_fig) && rm(File_fig);

using CairoMakie
using GeoMakie

lonbounds = (-180, -30); latbounds = (10, 80);

Han = Figure();
ga = GeoAxis(Han[1, 1];
    source     = "+proj=longlat +datum=WGS84",  # Input CRS (WGS84 lat/lon)
    dest       = "+proj=lcc +lat_1=33 +lat_2=45 +lat_0=39 +lon_0=-100", 
    xticks     = -180:30:-30,
    yticks     = 10:10:80,
    xgridstyle = :dash,
    ygridstyle = :dash,
    xgridcolor = :lightblue,
    ygridcolor = :lightblue,
    xgridwidth = 1,     
    ygridwidth = 1
); 

# Add coastlines: 
lines!(ga, GeoMakie.coastlines(); color = :skyblue);

GeoMakie.limits!(ga, lonbounds, latbounds)

save(File_fig, Han);

Here is the plotted map. There is a gap on my lower frame of the map around 10 latitude, and -100 longitude. What is causing this?

No one knows why?

Is there a forum dedicated for GeoMakie? Thanks.

Looks like the axis spine slightly clips outside of the inner Scene there and Makie removes that piece. That looks a bit like overeager clipping to me, @ffreyer maybe? Otherwise @asinghvi17

3 Likes

Problem resolved.

Below is the response from the GeoMakie experts:

Yeah it would basically be changing N here

[GeoMakie.jl/src/projection.jl](https://github.com/MakieOrg/GeoMakie.jl/blob/c8a608e08aae05f63f34cd9000fdc50f5c91872d/src/projection.jl#L78)

Line 78 in [c8a608e](https://github.com/MakieOrg/GeoMakie.jl/commit/c8a608e08aae05f63f34cd9000fdc50f5c91872d)

function iterated_bounds(f, (xmin, xmax), (ymin, ymax), N = 21)

All I did was to find the file on my computer

~/.julia/packages/GeoMakie/vU4FE/src/
chmod 777 projection.jl

Then change the N as mentioned above (Line 78) from 21 to 200.