Skip to content

Commit

Permalink
Switch to named colors in Examples 120 & 221
Browse files Browse the repository at this point in the history
  • Loading branch information
jpthiele authored and j-fu committed Nov 24, 2024
1 parent 5629fee commit 365b5e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/Example120_ThreeRegions1D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ function main(; n = 30, Plotter = nothing, plot_grid = false, verbose = false,
U2 = view(U[2, :], subgrid2)
U3 = view(U[3, :], subgrid3)

scalarplot!(p[1, 1], subgrid1, U1; label = "spec1", color = (0.5, 0, 0),
scalarplot!(p[1, 1], subgrid1, U1; label = "spec1", color = :darkred,
xlimits = (0, 3), flimits = (0, 1e-3),
title = @sprintf("three regions t=%.3g", time))
scalarplot!(p[1, 1], subgrid2, U2; label = "spec2", color = (0.0, 0.5, 0),
scalarplot!(p[1, 1], subgrid2, U2; label = "spec2", color = :green,
clear = false)
scalarplot!(p[1, 1], subgrid3, U3; label = "spec3", color = (0.0, 0.0, 0.5),
scalarplot!(p[1, 1], subgrid3, U3; label = "spec3", color = :navyblue,
clear = false, show = true)
if ismakie(Plotter)
sleep(0.02)
Expand Down
6 changes: 3 additions & 3 deletions examples/Example221_EquationBlockPrecon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ function main(;dim=1, nref=0, Plotter = nothing, plot_grid = false, verbose = fa
U2 = view(U[2, :], subgrid2)
U3 = view(U[3, :], subgrid3)

scalarplot!(p[1, 1], subgrid1, U1; title = "spec1", color = (0.5, 0, 0))
scalarplot!(p[2, 1], subgrid2, U2; title = "spec2", color = (0.0, 0.5, 0))
scalarplot!(p[3, 1], subgrid3, U3; title = "spec3", color = (0.0, 0.0, 0.5))
scalarplot!(p[1, 1], subgrid1, U1; title = "spec1", color = :darkred)
scalarplot!(p[2, 1], subgrid2, U2; title = "spec2", color = :green)
scalarplot!(p[3, 1], subgrid3, U3; title = "spec3", color = :navyblue)
reveal(p)
U
end
Expand Down

0 comments on commit 365b5e3

Please sign in to comment.