You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I plot into a matrix of 'GeoAxis`, my maps become tiny with lots of white space between my axes. It seems that the row gap is the culprit rather than the column gap.
The quick fix is to call something like rowgap!(fig.layout, -30).
A quick example:
using CairoMakie, GeoMakie
fig = Figure()
for i in 1:2, j in 1:2
ga = GeoAxis(fig[i,j], limits = (-30,55,-50,80))
poly!(ga, land)
end
fig
which comes out like this:
The text was updated successfully, but these errors were encountered:
n_rows =1
n_cols =4
maps = [rand(5,5) .* (i_row *10+ i_col) for i_row in1:n_rows, i_col in1:n_cols]
# get global extrema
extremas =map(extrema, maps)
global_min =minimum(t->first(t), extremas)
global_max =maximum(t->last(t), extremas)
# these limits have to be shared by the maps and the colorbar
clims = (global_min, global_max)
let
fig = GeoMakie.Figure()
for i_row in1:1, i_col in1:n_cols
ax = GeoMakie.GeoAxis(fig[i_row, i_col])
GeoMakie.heatmap!(ax, maps[i_row, i_col]; colorrange=clims)
end
cb = GeoMakie.Colorbar(fig[:, n_cols +1]; limits=clims)
fig
end
Hmm, this might be a result of the protrusions, but I'm not sure. Will have to resurrect some old code to check, the solution might be to just implement tight_ticklabel_spacing for GeoAxis.
When I plot into a matrix of 'GeoAxis`, my maps become tiny with lots of white space between my axes. It seems that the row gap is the culprit rather than the column gap.
The quick fix is to call something like
rowgap!(fig.layout, -30)
.A quick example:
which comes out like this:
The text was updated successfully, but these errors were encountered: