Skip to content

Commit 94cf243

Browse files
authored
New scientific theme with frame, and axes label alignment (#73)
* add the theme files * typo in include * fix dict of Vect of pairs
1 parent 6f1c8dc commit 94cf243

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/PlotThemes.jl

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ include("sand.jl")
4242
include("lime.jl")
4343
include("orange.jl")
4444
include("wong.jl")
45+
include("boxed.jl")
4546
include("juno.jl")
4647
include("gruvbox.jl")
4748
include("sheet.jl")
@@ -65,6 +66,7 @@ const _themes = Dict{Symbol, PlotTheme}([
6566
:mute => _mute,
6667
:wong => _wong,
6768
:wong2 => _wong2,
69+
:boxed => _boxed,
6870
:juno => _juno,
6971
:lime => _lime,
7072
:orange => _orange,

src/boxed.jl

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const _boxed = PlotTheme(Dict([
2+
:minorticks => true,
3+
:grid => false,
4+
:frame => :box,
5+
:guidefontvalign => :top,
6+
:guidefonthalign => :right,
7+
:foreground_color_legend => nothing,
8+
:legendfontsize => 9,
9+
:legend => :topright,
10+
:xlim => (:auto,:auto),
11+
:ylim => (:auto,:auto),
12+
:label => "",
13+
:palette => expand_palette(colorant"white", [RGB(0,0,0); wong_palette];
14+
lchoices = [57],
15+
cchoices = [100])
16+
]))

0 commit comments

Comments
 (0)