Skip to content

Commit

Permalink
New scientific theme with frame, and axes label alignment (#73)
Browse files Browse the repository at this point in the history
* add the theme files

* typo in include

* fix dict of Vect of pairs
  • Loading branch information
mmikhasenko authored Oct 29, 2024
1 parent 6f1c8dc commit 94cf243
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PlotThemes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ include("sand.jl")
include("lime.jl")
include("orange.jl")
include("wong.jl")
include("boxed.jl")
include("juno.jl")
include("gruvbox.jl")
include("sheet.jl")
Expand All @@ -65,6 +66,7 @@ const _themes = Dict{Symbol, PlotTheme}([
:mute => _mute,
:wong => _wong,
:wong2 => _wong2,
:boxed => _boxed,
:juno => _juno,
:lime => _lime,
:orange => _orange,
Expand Down
16 changes: 16 additions & 0 deletions src/boxed.jl
Original file line number Diff line number Diff line change
@@ -0,0 +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 => "",
:palette => expand_palette(colorant"white", [RGB(0,0,0); wong_palette];
lchoices = [57],
cchoices = [100])
]))

0 comments on commit 94cf243

Please sign in to comment.