Skip to content

Commit

Permalink
doc: Draft submission to JOSS
Browse files Browse the repository at this point in the history
  • Loading branch information
musoke committed Sep 16, 2023
1 parent 406da54 commit e45e006
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 40 deletions.
Binary file modified benchmarks/time_step/cpus.pdf
Binary file not shown.
17 changes: 10 additions & 7 deletions benchmarks/time_step/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ function plot_cpus(df)
data(df) *
mapping(:total_cpus => "number of CPUs", :time => "time (s)") *
visual(Scatter) *
mapping(marker = :grids_type)
mapping(marker = :grids_type => "")
time_theory =
data(df) *
mapping(:total_cpus => "number of CPUs", :theory_time => "time (s)") *
visual(Lines) *
mapping(linestyle = :grids_type)
mapping(linestyle = :grids_type => "")

plt = (time_data + time_theory) * mapping(color = :grids_type)
plt = (time_data + time_theory) * mapping(color = :grids_type => "")

fg = draw(plt, axis = (yscale = log10,))
fg = draw(plt, axis = (xscale = log2, yscale = log10,))
save("cpus.pdf", fg)
end

Expand Down Expand Up @@ -117,15 +117,18 @@ function plot_resol(df)
data(df) *
mapping(:resol => "resolution", :time => "time (s)") *
visual(Scatter) *
mapping(marker = :grids_type)
mapping(marker = :grids_type => "")
time_theory =
data(df) *
mapping(:resol => "resolution", :theoretical_time => "time (s)") *
visual(Lines) *
mapping(linestyle = :grids_type)
mapping(linestyle = :grids_type => "")

plt = (time_data + time_theory) * mapping(color = :grids_type)
plt = (time_data + time_theory) * mapping(color = :grids_type => "")

fg = draw(plt, axis = (yscale = log10,))
save("resol.pdf", fg)
end

load_generate_data() |> generate_data_cpus |> plot_cpus
load_generate_data() |> generate_data_resol |> plot_resol
Binary file modified benchmarks/time_step/resol.pdf
Binary file not shown.
Loading

0 comments on commit e45e006

Please sign in to comment.