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

lonlims seems to misbehave #118

Open
gaelforget opened this issue Jun 20, 2022 · 3 comments
Open

lonlims seems to misbehave #118

gaelforget opened this issue Jun 20, 2022 · 3 comments

Comments

@gaelforget
Copy link
Contributor

gaelforget commented Jun 20, 2022

with v0.4.1, the following

f = Figure()
ax = GeoAxis(f[1,1],dest = "+proj=longlat +datum=WGS84 +lon_0=-90.0")
f

gives

Screen Shot 2022-06-20 at 3 08 29 PM

(where the ticks should be on the left hand side)

and

f = Figure()
ax = GeoAxis(f[1,1],dest = "+proj=longlat +datum=WGS84 +lon_0=-90.0",lonlims = (-270, 90))
f

gives

Screen Shot 2022-06-20 at 3 12 48 PM

(where the plot no longer reaches -270 and does not show the ticks on the left)

@gaelforget gaelforget changed the title lonlims misbehaves lonlims seems to misbehave Jun 20, 2022
@gaelforget
Copy link
Contributor Author

gaelforget commented Jun 20, 2022

Side note :

I spent some time working out a fix for the coastline part in relation to lon0 (recut the geojson data at lon0+180) which I would happily send as PR to GeoMakie.jl

Illustration of the coastline fix :

Screen Shot 2022-06-20 at 3 40 55 PM

@asinghvi17
Copy link
Member

Huh. The tick thing is interesting - I think it's because of a couple of different factors (longitude wrapping in Proj + a slightly bad tick positioning algorithm). If you want to plot directly in lon-lat coordinates then you might actually want to use a regular Axis for the time being, since GeoMakie is still pretty hacky.

I understood layouting a bit more after the polar axis was implemented, so I should be able to make GeoAxis a proper layoutable soon.

Would love a PR with that code! Is it arbitrary to any latitude?

I'm on vacation now so can't really work on this, but should be able to when I get back.

@gaelforget
Copy link
Contributor Author

Sorry for the long delay. I just sent the PR #128

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

2 participants