Skip to content

Commit

Permalink
🎨 edits to supp.mat. figures for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldansereau committed Dec 18, 2023
1 parent e40583e commit 3d583f4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
8 changes: 4 additions & 4 deletions 10_plot_network_measures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
22 changes: 18 additions & 4 deletions 15_plot_motifs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Binary file modified figures/bivariate_richness_links.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/bivariate_richness_links_variance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/motifs_NDI_competition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/motifs_NDI_trophic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d583f4

Please sign in to comment.