Skip to content

Commit 4a73dce

Browse files
committed
fix: naming
1 parent d0e94d1 commit 4a73dce

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

benchmarks/NonlinearProblem/nonlinear_battery_problem.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ fig = begin
264264
HEIGHT = round(Int, WIDTH * ASPECT_RATIO)
265265
STROKEWIDTH = 2.5
266266

267-
colors = cgrad(::tableau_20, length(successful_solvers); categorical = true)
267+
colors = cgrad(:tableau_20, length(successful_solvers); categorical = true)
268268
cycle = Cycle([:marker], covary = true)
269269
plot_theme = Theme(Lines = (; cycle), Scatter = (; cycle))
270270

benchmarks/NonlinearProblem/nonlinear_solver_23_tests.jmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function plot_collective_benchmark(prob_name, wp_general, wp_NR, wp_TR, wp_LM)
216216
HEIGHT = round(Int, WIDTH * ASPECT_RATIO)
217217
STROKEWIDTH = 2.5
218218

219-
colors = cgrad(::tableau_20, length(solvers_all); categorical = true)
219+
colors = cgrad(:tableau_20, length(solvers_all); categorical = true)
220220
cycle = Cycle([:marker], covary = true)
221221
plot_theme = Theme(Lines = (; cycle), Scatter = (; cycle))
222222

@@ -469,7 +469,7 @@ fig = begin
469469
HEIGHT = round(Int, WIDTH * ASPECT_RATIO)
470470
STROKEWIDTH = 2.5
471471

472-
colors = cgrad(::tableau_20, length(solvers_all); categorical = true)
472+
colors = cgrad(:tableau_20, length(solvers_all); categorical = true)
473473
cycle = Cycle([:marker], covary = true)
474474
plot_theme = Theme(Lines = (; cycle), Scatter = (; cycle))
475475

benchmarks/NonlinearProblem/quadratic_nonlinear.jmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function plot_all_wpsets(wpset_list, solver_all, titles, suptitle)
111111
HEIGHT = round(Int, WIDTH * ASPECT_RATIO)
112112
STROKEWIDTH = 2.5
113113

114-
colors = cgrad(::tableau_20, length(solver_all); categorical = true)
114+
colors = cgrad(:tableau_20, length(solver_all); categorical = true)
115115
cycle = Cycle([:marker], covary = true)
116116
plot_theme = Theme(Lines = (; cycle,), Scatter = (; cycle,))
117117

@@ -291,7 +291,7 @@ fig = begin
291291
xticklabelrotation = π / 4, xticklabelsize = 20, yticklabelsize = 20)
292292
axs[1, i] = ax
293293

294-
barplot!(ax, xs, ys; color = dodge, colormap = ::tableau_20, strokewidth = 2)
294+
barplot!(ax, xs, ys; color = dodge, colormap = :tableau_20, strokewidth = 2)
295295

296296
hlines!(ax, [1.0], color = :black, linestyle = :dash, linewidth = 2)
297297
end
@@ -316,7 +316,7 @@ fig = begin
316316
xticklabelrotation = π / 4, xticklabelsize = 20, yticklabelsize = 20)
317317
axs[1, i] = ax
318318

319-
barplot!(ax, xs, ys; color = dodge, dodge = dodge, colormap = ::tableau_20,
319+
barplot!(ax, xs, ys; color = dodge, dodge = dodge, colormap = :tableau_20,
320320
strokewidth = 3)
321321

322322
hlines!(ax, [1.0], color = :black, linestyle = :dash, linewidth = 3)
@@ -334,7 +334,7 @@ fig = begin
334334
fontsize = 22, tellheight = false, rotation = π / 2)
335335

336336
labels = ["NonlinearSolve.jl", "NLsolve.jl", "Sundials"]
337-
colors = cgrad(::tableau_20, length(labels); categorical = true)
337+
colors = cgrad(:tableau_20, length(labels); categorical = true)
338338
elements = [PolyElement(; polycolor = colors[i], strokewidth = 3) for i in 1:3]
339339
axislegend(axs[1, 4], elements, labels, "Package", patchsize = (20, 20),
340340
labelsize = 16, titlesize = 20, framewidth = STROKEWIDTH, rowgap = 5)

0 commit comments

Comments
 (0)