Skip to content

Commit

Permalink
Debug docs ci
Browse files Browse the repository at this point in the history
Fix plotting
  • Loading branch information
charleskawczynski committed Apr 29, 2024
1 parent 51bfd83 commit 41b3fdd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/src/dev/report_gen.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#=
julia --project=docs
using Revise; include(joinpath("docs", "src", "dev", "report_gen.jl"))
=#
using ClimaTimeSteppers
using Test
using InteractiveUtils: subtypes
Expand Down
6 changes: 5 additions & 1 deletion docs/src/plotting_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,14 @@ function verify_convergence(
plots = (plots..., footnote_plot)

n_plots = length(plots)
heights₀ = repeat([1 / (n_plots - 1)], n_plots - 1)
footnote_height = 100 * eps()
heights = [heights₀ .- footnote_height / n_plots..., footnote_height]
layout = Plots.grid(n_plots, 1; heights)
plot = Plots.plot(
plots...;
plot_title = "Analysis of $title for \"$test_name\"",
layout = Plots.grid(n_plots, 1; heights = [repeat([1 / (n_plots - 1)], n_plots - 1)..., 0]),
layout = layout,
fontfamily = "Computer Modern",
)

Expand Down

0 comments on commit 41b3fdd

Please sign in to comment.