diff --git a/10_plot_network_measures.jl b/10_plot_network_measures.jl index 955c05b..a788efa 100644 --- a/10_plot_network_measures.jl +++ b/10_plot_network_measures.jl @@ -83,10 +83,10 @@ begin g2 = fig[2:5, end] = GridLayout() p1 = background_map(g1[1,1]) - sf = bivariatesurface!(p1, S, L; bv_pal_2...) + sf = bivariatesurface!(p1, S, L; n_stops=5, bv_pal_2...) p2 = Axis(g2[1,1]; aspect = 1, xlabel = "Richness", ylabel = "Links") - l2 = bivariatelegend!(p2, S, L; bv_pal_2...) + l2 = bivariatelegend!(p2, S, L; n_stops=5, bv_pal_2...) fig end if (@isdefined SAVE) && SAVE == true @@ -100,10 +100,10 @@ begin g2 = fig[2:5, end] = GridLayout() p1 = background_map(g1[1,1]) - sf = bivariatesurface!(p1, Sv, Lv; bv_pal_2...) + sf = bivariatesurface!(p1, Sv, Lv; n_stops=5, bv_pal_2...) p2 = Axis(g2[1,1]; aspect = 1, xlabel = "Richness variance", ylabel = "Link variance") - l2 = bivariatelegend!(p2, Sv, Lv; bv_pal_2...) + l2 = bivariatelegend!(p2, Sv, Lv; n_stops=5, bv_pal_2...) fig end if (@isdefined SAVE) && SAVE == true diff --git a/15_plot_motifs.jl b/15_plot_motifs.jl index 0f99a79..ef87baa 100644 --- a/15_plot_motifs.jl +++ b/15_plot_motifs.jl @@ -43,8 +43,15 @@ end # S1-S2 comparison - Normalized difference trophic index begin fig = background_map() - sf = surface!(NDTI; shading=false, colorrange=(-1/2,1/2), colormap=:roma) - Colorbar(fig[1,2], sf; height=Relative(0.5), label="Normalized Difference Trophic Index") + sf = surface!(NDTI; shading=false, colorrange=(-1/2,1/2), colormap=cgrad(:roma, rev=true)) + subgrid = GridLayout(fig[1,2], tellheight=false, height=Relative(0.55)) + Label(subgrid[1, 1], "⬆S1") + Colorbar(subgrid[2,1], sf; + label="Normalized Difference Trophic Index", + ticks=([-0.5, 0.0, 0.5], ["≤-0.5", " 0.0", "≥0.5"]) + ) + Label(subgrid[3, 1], "⬇️S2") + rowgap!(subgrid, 10) fig end if (@isdefined SAVE) && SAVE == true @@ -54,8 +61,15 @@ end # S4-S5 comparison - Normalized difference competition index begin fig = background_map() - sf = surface!(NDCI; shading=false, colorrange=(-1/2,1/2), colormap=:roma) - Colorbar(fig[1,2], sf; height=Relative(0.5), label="Normalized Difference Competition Index") + sf = surface!(NDCI; shading=false, colorrange=(-1/2,1/2), colormap=cgrad(:roma, rev=true)) + subgrid = GridLayout(fig[1,2], tellheight=false, height=Relative(0.55)) + Label(subgrid[1, 1], "⬆S4") + Colorbar(subgrid[2,1], sf; + label="Normalized Difference Competition Index", + ticks=([-0.5, 0.0, 0.5], ["≤-0.5", " 0.0", "≥0.5"]) + ) + Label(subgrid[3, 1], "⬇️S5") + rowgap!(subgrid, 10) fig end if (@isdefined SAVE) && SAVE == true diff --git a/figures/bivariate_richness_links.png b/figures/bivariate_richness_links.png index d644bec..9420ade 100644 Binary files a/figures/bivariate_richness_links.png and b/figures/bivariate_richness_links.png differ diff --git a/figures/bivariate_richness_links_variance.png b/figures/bivariate_richness_links_variance.png index 6e0bfd0..f3b297c 100644 Binary files a/figures/bivariate_richness_links_variance.png and b/figures/bivariate_richness_links_variance.png differ diff --git a/figures/motifs_NDI_competition.png b/figures/motifs_NDI_competition.png index e2f7a9f..a8395cf 100644 Binary files a/figures/motifs_NDI_competition.png and b/figures/motifs_NDI_competition.png differ diff --git a/figures/motifs_NDI_trophic.png b/figures/motifs_NDI_trophic.png index 48ad7bc..8f92685 100644 Binary files a/figures/motifs_NDI_trophic.png and b/figures/motifs_NDI_trophic.png differ