Skip to content

Commit

Permalink
better ticks, x/ylimits and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jan 4, 2024
1 parent c32ddb6 commit d383cb8
Show file tree
Hide file tree
Showing 8 changed files with 265 additions and 154 deletions.
2 changes: 1 addition & 1 deletion examples/contourf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ field = [exp(cosd(l)) + 3(y/90) for l in lons, y in lats]
# Surface example
fig = Figure()
ax = GeoAxis(fig[1,1])
contourf!(ax, lons, lats, field; shading = NoShading)
contourf!(ax, lons, lats, field)
fig
2 changes: 1 addition & 1 deletion examples/meshimage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fig
fig = Figure()
ax1 = Axis(fig[1, 1]; xscale = log, yscale = log10)
lg = (Makie.logo())
mi = meshimage!(ax1, 1..size(lg, 1), 1..size(lg, 2), lg)
mi = meshimage!(ax1, 1 .. size(lg, 1), 1 .. size(lg, 2), lg)
fig
# `save("log_scaling.png", fig)`
# ## Nonlinear and non-separable (geographic transformation)
Expand Down
24 changes: 9 additions & 15 deletions examples/most_projections.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Makie, CairoMakie
using GeoMakie
using GeoMakie, CairoMakie
projections = ["+proj=adams_hemi", "+proj=adams_ws1", "+proj=adams_ws2",
"+proj=aea +lat_1=29.5 +lat_2=42.5", "+proj=aeqd", "+proj=airy", "+proj=aitoff",
"+proj=apian", "+proj=august", "+proj=bacon", "+proj=bertin1953", "+proj=bipc +ns",
Expand Down Expand Up @@ -29,21 +28,16 @@ projections = ["+proj=adams_hemi", "+proj=adams_ws1", "+proj=adams_ws2",
"+proj=wag5", "+proj=wag6", "+proj=wag7", "+proj=webmerc +datum=WGS84", "+proj=weren",
"+proj=wink1", "+proj=wink2", "+proj=wintri"]
let k = 1
GLMakie.activate!()
fig = Figure(size=(1500, 1500))
@time for i in 1:10, j in 1:3
try
ga = GeoAxis(
fig[i, j];
aspect=nothing,
dest=projections[k],
title="$(projections[k])"
)
lines!(ga, GeoMakie.coastlines())
catch ex
println(projections[k])
println(ex)
end
ga = GeoAxis(
fig[i, j];
aspect=nothing,
dest=projections[k],
title="$(projections[k])"
)
lines!(ga, GeoMakie.coastlines())

k += 1
end
display(fig)
Expand Down
1 change: 1 addition & 0 deletions examples/orthographic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ga = GeoAxis(
fig[1, 1],
dest="+proj=ortho",
title = "Orthographic projection",
xticklabelcolor=:red, xgridcolor=:red,
aspect=nothing,
)
lp = lines!(ga, GeoMakie.coastlines(); transformation = (; translation = (0, 0, 1)))
Expand Down
2 changes: 1 addition & 1 deletion examples/specialized/nasaearthobs.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GeoMakie, GLMakie
using GeoMakie, CairoMakie
using ProgressMeter # for recording

# acquire data
Expand Down
Loading

0 comments on commit d383cb8

Please sign in to comment.