Skip to content

Commit

Permalink
Remove lonlims and datalims from examples (#216)
Browse files Browse the repository at this point in the history
* Update README.md

lonlims and datalims were removed in #163

* Update italy.jl

* Update osmmakie.jl

* Update graph_on_usa.jl

* Update GeoMakie.jl

* Update osmmakie.jl

* Update graph_on_usa.jl

---------

Co-authored-by: Anshul Singhvi <[email protected]>
  • Loading branch information
likev and asinghvi17 authored Jun 12, 2024
1 parent dc70cc3 commit 89b01a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ land = GeoMakie.land()

fig = Figure(size = (1000, 1000))

ga1 = GeoAxis(fig[1, 1]; dest = "+proj=ortho", lonlims = (-90, 90), title = "Orthographic\n "); lines!(ga1, GeoMakie.coastlines())
ga1 = GeoAxis(fig[1, 1]; dest = "+proj=ortho", title = "Orthographic\n ")
ga2 = GeoAxis(fig[1, 2]; dest = "+proj=moll", title = "Image of Earth\n ")
ga3 = GeoAxis(fig[2, 1]; title = "Plotting polygons")
ga4 = GeoAxis(fig[2, 2]; dest = "+proj=natearth", title = "Auto limits") # you can plot geodata on regular axes too

surface!(ga1, fieldlons, fieldlats, field; colormap = :rainbow_bgyrm_35_85_c69_n256, shading = NoShading)
lines!(ga1, GeoMakie.coastlines())

image!(ga2, -180..180, -90..90, img; interpolate = false) # this must be included
poly!(ga3, land[50:100]; color = 1:51, colormap = (:plasma, 0.5))
poly!(ga4, land[22]); datalims!(ga4)
poly!(ga4, land[22]);

fig
```
Expand Down
6 changes: 3 additions & 3 deletions examples/specialized/osmmakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fig = Figure()
ga = GeoAxis(fig[1, 1]; dest="+proj=eqearth +lon_0=25")

osmplot!(ga, osm)
datalims!(ga)

fig

download_osm_buildings(:bbox;
Expand All @@ -45,9 +45,9 @@ buildings = buildings_from_file("london_buildings.osm");
# plot London map with buildings

fig = Figure();
ga = GeoAxis(fig[1, 1]; dest="+proj=ortho +lon_0=0 +lat_0=51.5", lonlims = (0, 1), latlims=(50, 51))
ga = GeoAxis(fig[1, 1]; dest="+proj=ortho +lon_0=0 +lat_0=51.5", limits = ((0, 1), (50, 51)) )
plot = osmplot!(ga, osm; buildings)
datalims!(ga)

fig
#
# make cover image #jl
Expand Down
2 changes: 1 addition & 1 deletion src/GeoMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export Proj

export FileIO

export GeoAxis, datalims, datalims!, automatic
export GeoAxis, automatic

function __init__()
@eval Makie.MakieCore begin
Expand Down

0 comments on commit 89b01a1

Please sign in to comment.