From a45075a0fec96f103df68d849d7a7a5210f4d1c6 Mon Sep 17 00:00:00 2001 From: Tarn Yeong Ching Date: Mon, 15 Jul 2024 17:01:21 +0800 Subject: [PATCH] adjust pie example --- ReferenceTests/src/tests/examples2d.jl | 4 ++-- docs/src/reference/plots/pie.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ReferenceTests/src/tests/examples2d.jl b/ReferenceTests/src/tests/examples2d.jl index 73fd089249b..0ccb3eb14c5 100644 --- a/ReferenceTests/src/tests/examples2d.jl +++ b/ReferenceTests/src/tests/examples2d.jl @@ -385,9 +385,9 @@ end rs = 8 rs_inner = sqrt.(vs_inner ./ vs) * rs - lp = Makie.LinePattern(; direction=Makie.Vec2f(1, -1), width=2, tilesize=(12, 12), linecolor=:white, background_color=:transparent) + lp = Makie.LinePattern(; direction=Makie.Vec2f(1, -1), width=2, tilesize=(12, 12), linecolor=:darkgrey, background_color=:transparent) # draw the inner pie twice since `color` can not be vector of `LinePattern` currently - pie!(ax, 20, 0, vs; radius=rs_inner, inner_radius=0, kw..., color=Makie.wong_colors(0.8)[eachindex(vs)]) + pie!(ax, 20, 0, vs; radius=rs_inner, inner_radius=0, kw..., color=Makie.wong_colors(0.4)[eachindex(vs)]) pie!(ax, 20, 0, vs; radius=rs_inner, inner_radius=0, kw..., color=lp) pie!(ax, 20, 0, vs; radius=rs, inner_radius=rs_inner, kw..., color=Makie.wong_colors(0.8)[eachindex(vs)]) diff --git a/docs/src/reference/plots/pie.md b/docs/src/reference/plots/pie.md index 13b8dd8b52f..4e1ae8ede7d 100644 --- a/docs/src/reference/plots/pie.md +++ b/docs/src/reference/plots/pie.md @@ -47,9 +47,9 @@ vs_inner = [1, 1, 1, 1, 2, 2, 2] rs = 8 rs_inner = sqrt.(vs_inner ./ vs) * rs -lp = Makie.LinePattern(; direction=Makie.Vec2f(1, -1), width=2, tilesize=(12, 12), linecolor=:white, background_color=:transparent) +lp = Makie.LinePattern(; direction=Makie.Vec2f(1, -1), width=2, tilesize=(12, 12), linecolor=:darkgrey, background_color=:transparent) # draw the inner pie twice since `color` can not be vector of `LinePattern` currently -pie!(ax, 20, 0, vs; radius=rs_inner, inner_radius=0, kw..., color=Makie.wong_colors(0.8)[eachindex(vs)]) +pie!(ax, 20, 0, vs; radius=rs_inner, inner_radius=0, kw..., color=Makie.wong_colors(0.4)[eachindex(vs)]) pie!(ax, 20, 0, vs; radius=rs_inner, inner_radius=0, kw..., color=lp) pie!(ax, 20, 0, vs; radius=rs, inner_radius=rs_inner, kw..., color=Makie.wong_colors(0.8)[eachindex(vs)])