Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make grid invisible #167

Closed
filchristou opened this issue Apr 28, 2023 · 4 comments
Closed

make grid invisible #167

filchristou opened this issue Apr 28, 2023 · 4 comments

Comments

@filchristou
Copy link

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
Copy link
Author

filchristou commented Apr 29, 2023

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

@itsmohitanand
Copy link

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

@noahrhodes
Copy link

I use this to hide the grid and labels

hidedecorations!(ga)
hidespines!(ga)

@asinghvi17
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants