MakieOrg / GeoMakie.jl

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

make grid invisible #167

Closed filchristou closed 3 months ago

filchristou commented 1 year ago

Hi. I would like to make the grid invisible. I tried it with the standard Makie commands in the italian map:

let
    it_states = Downloads.download("https://github.com/openpolis/geojson-italy/raw/master/geojson/limits_IT_provinces.geojson")
    geo = GeoJSON.read(read(it_states, String))

    fig = Figure()
    ga = GeoAxis(fig[1, 1]; dest = "+proj=ortho +lon_0=12.5 +lat_0=42", lonlims=(12, 13), latlims = (40, 44), xgridvisible=false, ygridvisible=false, xticklabelsvisible=false, yticklabelsvisible=false, xticksvisible=false, yticksvisible=false)
    poly!(ga, geo; strokecolor = :blue, strokewidth = 1, color = (:blue, 0.5), shading = false);
    datalims!(ga)

    fig
end

image it works for ticks and labels but not for the grid.

filchristou commented 1 year ago

I want to mention that hidedecorations!(ga) is working as expected.

itsmohitanand commented 1 year ago

I have the same issue. Would like to know if a solution exists.

noahrhodes commented 11 months ago

I use this to hide the grid and labels

hidedecorations!(ga)
hidespines!(ga)
asinghvi17 commented 3 months ago

Should work now, the API is significantly different as well.