diff --git a/README.md b/README.md index 8ff967d..dd1f7a8 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ Currently the following themes are available: - `:bright` - `:vibrant` - `:mute` +- `:dao` + When using Plots, a theme can be set using the `theme` function: ```julia @@ -88,6 +90,10 @@ Themes can be previewed using `Plots.showtheme(thm::Symbol)`: ![theme_mute](https://user-images.githubusercontent.com/16589944/70848069-9860bf80-1e6c-11ea-9cac-8a797d526835.png) +### `:dao` +![theme_dao](https://user-images.githubusercontent.com/7330605/106512313-54de7000-64c9-11eb-98d5-2aee3603879a.png) + + ## Contributing A theme specifies default values for different Plots [attributes](http://docs.juliaplots.org/attributes/). At the moment these are typically colors, palettes and colorgradients, but any Plots attribute can be controlled by a theme in general. diff --git a/src/PlotThemes.jl b/src/PlotThemes.jl index b0fdae4..ed15a87 100644 --- a/src/PlotThemes.jl +++ b/src/PlotThemes.jl @@ -52,6 +52,7 @@ include("wong.jl") include("juno.jl") include("gruvbox.jl") include("sheet.jl") +include("dao.jl") function __init__() # need to do this here so PlotUtils picks up the change diff --git a/src/dao.jl b/src/dao.jl new file mode 100644 index 0000000..53b9452 --- /dev/null +++ b/src/dao.jl @@ -0,0 +1,29 @@ +dao_palette = [ + colorant"#d77255", + colorant"#009afa", + colorant"#707070", + colorant"#21ab74", + colorant"#ba3030", + colorant"#9467bd" +] + +_themes[:dao] = PlotTheme( + background = :white, + framestyle = :box, + grid=true, + gridalpha=0.4, + linewidth=1.4, + markerstrokewidth=0, + fontfamily = "Computer Modern", + colorgradient = :magma, + guidefontsize=12, + titlefontsize=12, + tickfontsize=8, + palette = dao_palette, + minorgrid=true, + minorticks = 5, + gridlinewidth = 0.7, + minorgridalpha=0.06, + legend=:outertopright, + # marker=:auto +)