From 436c66b472e62abcd5ecdc727822155c6846e088 Mon Sep 17 00:00:00 2001 From: Misha Mikhasenko Date: Wed, 23 Oct 2024 14:49:55 +0200 Subject: [PATCH 1/3] add the theme files --- src/PlotThemes.jl | 2 ++ src/boxed.jl | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/boxed.jl diff --git a/src/PlotThemes.jl b/src/PlotThemes.jl index 08377bf..f029e3f 100644 --- a/src/PlotThemes.jl +++ b/src/PlotThemes.jl @@ -42,6 +42,7 @@ include("sand.jl") include("lime.jl") include("orange.jl") include("wong.jl") +include("framed.jl") include("juno.jl") include("gruvbox.jl") include("sheet.jl") @@ -65,6 +66,7 @@ const _themes = Dict{Symbol, PlotTheme}([ :mute => _mute, :wong => _wong, :wong2 => _wong2, + :boxed => _boxed, :juno => _juno, :lime => _lime, :orange => _orange, diff --git a/src/boxed.jl b/src/boxed.jl new file mode 100644 index 0000000..6c81184 --- /dev/null +++ b/src/boxed.jl @@ -0,0 +1,17 @@ + +const _boxed = PlotTheme(Dict([ + :minorticks=true, + :grid=false, + :frame=:box, + :guidefontvalign=:top, + :guidefonthalign=:right, + :foreground_color_legend = nothing, + :legendfontsize=9, + :legend =:topright, + :xlim=(:auto,:auto), + :ylim=(:auto,:auto), + :label="", + :palette => expand_palette(colorant"white", [RGB(0,0,0); wong_palette]; + lchoices = [57], + cchoices = [100]) + ])) \ No newline at end of file From 4ca8926367851ea07c9a2976021deebb1ca82c45 Mon Sep 17 00:00:00 2001 From: Misha Mikhasenko Date: Wed, 23 Oct 2024 14:54:43 +0200 Subject: [PATCH 2/3] typo in include --- src/PlotThemes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlotThemes.jl b/src/PlotThemes.jl index f029e3f..f00cdc4 100644 --- a/src/PlotThemes.jl +++ b/src/PlotThemes.jl @@ -42,7 +42,7 @@ include("sand.jl") include("lime.jl") include("orange.jl") include("wong.jl") -include("framed.jl") +include("boxed.jl") include("juno.jl") include("gruvbox.jl") include("sheet.jl") From 5513fc7c05baefe822dacf5b896d014147b3cf87 Mon Sep 17 00:00:00 2001 From: Misha Mikhasenko Date: Wed, 23 Oct 2024 16:24:47 +0200 Subject: [PATCH 3/3] fix dict of Vect of pairs --- src/boxed.jl | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/boxed.jl b/src/boxed.jl index 6c81184..664febb 100644 --- a/src/boxed.jl +++ b/src/boxed.jl @@ -1,17 +1,16 @@ - const _boxed = PlotTheme(Dict([ - :minorticks=true, - :grid=false, - :frame=:box, - :guidefontvalign=:top, - :guidefonthalign=:right, - :foreground_color_legend = nothing, - :legendfontsize=9, - :legend =:topright, - :xlim=(:auto,:auto), - :ylim=(:auto,:auto), - :label="", + :minorticks => true, + :grid => false, + :frame => :box, + :guidefontvalign => :top, + :guidefonthalign => :right, + :foreground_color_legend => nothing, + :legendfontsize => 9, + :legend => :topright, + :xlim => (:auto,:auto), + :ylim => (:auto,:auto), + :label => "", :palette => expand_palette(colorant"white", [RGB(0,0,0); wong_palette]; lchoices = [57], cchoices = [100]) - ])) \ No newline at end of file + ]))