Skip to content

Commit

Permalink
doc(sdt): format
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot committed Nov 27, 2024
1 parent aaa9dd5 commit b477fff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/tutorials/bivariate-vsup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ val, unc = layers

# fig-hm
heatmap(val; axis = (aspect = DataAspect(),))
lines!(POL[1].geometry, color=:black)
lines!(POL[1].geometry; color = :black)
current_figure() #hide

# now see the seasonality layer

# fig-hm-unc
heatmap(unc; axis = (aspect = DataAspect(),))
lines!(POL[1].geometry, color=:black)
lines!(POL[1].geometry; color = :black)
current_figure() #hide

# ## Value-suppressing uncertainty palette
Expand Down Expand Up @@ -70,7 +70,7 @@ end
function discretize(layer, n::Integer)
categories = rescale(layer, 0.0, 1.0)
n = n - 2
map!(x -> round(x * (n + 1); digits=0) / (n + 1), categories.grid, categories.grid)
map!(x -> round(x * (n + 1); digits = 0) / (n + 1), categories.grid, categories.grid)
return n * categories
end

Expand All @@ -89,7 +89,7 @@ ax = Axis(f[1, 1]; aspect = DataAspect())
heatmap!(ax, vbin + (ubin - 1) * maximum(vbin); colormap = vcat(pal...))
hidespines!(ax)
hidedecorations!(ax)
lines!(POL[1].geometry, color=:black)
lines!(POL[1].geometry; color = :black)
current_figure() #hide

# fig-vsup-legend
Expand Down

0 comments on commit b477fff

Please sign in to comment.