Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
3d2b7e4
initial empty commit
pkofod May 4, 2016
ab4ce23
PlotThemes.jl generated files.
pkofod May 4, 2016
2a0e6f6
Changes.
pkofod Jul 25, 2016
af8dd59
Changes
pkofod Oct 7, 2016
bf7364d
Add add-function for plots.
pkofod Oct 7, 2016
df824a8
Example.
pkofod Oct 8, 2016
fa757a4
simplified readme
tbreloff Oct 8, 2016
8b2de6d
removed unused marker from violin/boxplot
tbreloff Oct 8, 2016
499c934
Merge pull request #2 from tbreloff/tb
pkofod Oct 8, 2016
245879b
Update README.md
pkofod Oct 8, 2016
c0d8057
Finish solarized.
pkofod Oct 9, 2016
b610994
Update README.md
pkofod Oct 10, 2016
71f5847
Update README.md
pkofod Oct 10, 2016
648dca1
Update README.md
pkofod Oct 10, 2016
41adeb7
Contrast theme added.
pkofod Oct 10, 2016
d43e1f8
A little description.
pkofod Oct 10, 2016
edda18c
Fruity commit - lime and orange.
pkofod Oct 10, 2016
ddf9377
reorg: add_theme registers the gradient, remove plot_theme, depend on…
tbreloff Oct 11, 2016
155d712
Merge pull request #6 from tbreloff/tb
pkofod Oct 11, 2016
f5c683d
readme: travis badge and clone link
tbreloff Oct 11, 2016
01ff5db
travis
tbreloff Oct 11, 2016
2fe3e73
readme
tbreloff Oct 11, 2016
ce6eadb
gradient_name
tbreloff Oct 13, 2016
27f9c2e
fix test
tbreloff Oct 13, 2016
fe65a50
A dark theme closer to Juno defaults.
pkofod Feb 10, 2017
9a60c50
Merge pull request #13 from JuliaPlots/juno
pkofod Feb 10, 2017
d87d416
Allows PlotThemes to work with color libraries
mkborregaard Feb 26, 2017
fb6abf7
Put themes in the Plots library
mkborregaard Feb 27, 2017
1887eca
Merge pull request #15 from mkborregaard/master
mkborregaard Mar 2, 2017
ded1276
put themes in misc
mkborregaard Mar 3, 2017
5142041
Merge pull request #16 from mkborregaard/put-in-misc
mkborregaard Mar 3, 2017
ebff98c
Add minimum version number for PlotUtils
mkborregaard May 11, 2017
8bf913f
Merge pull request #17 from mkborregaard/master
mkborregaard May 11, 2017
bac8bfd
Update tests
mkborregaard May 15, 2017
04e6118
Merge pull request #18 from mkborregaard/update_tests
mkborregaard May 15, 2017
313c45d
Update CI URLs to point to new caching infrastructure
staticfloat May 17, 2017
a7e7aa0
Merge pull request #19 from staticfloat/updated_ci_url
pkofod May 26, 2017
02c9220
update images for readme (#20)
Dec 2, 2017
edfa761
change existing themes and add :colorblind and :ggplot2 theme
Dec 4, 2017
b937a7c
change immutable to struct
Dec 4, 2017
9d9b6cc
change colorblind theme name to wong
Dec 4, 2017
0cafba4
change wong colormap to viridis
Dec 11, 2017
f9082c0
update julia version to 0.6 in tests and REQUIRE
Dec 14, 2017
f30211e
Merge pull request #21 from daschw/plottheme
Dec 14, 2017
5e2f9a9
add wong2 theme
Dec 14, 2017
21003e4
Merge pull request #22 from daschw/wong2
Dec 14, 2017
465267a
update readme
Dec 17, 2017
436197e
change theme gradients
mkborregaard Dec 18, 2017
fd3b646
Merge pull request #24 from mkborregaard/master
mkborregaard Dec 19, 2017
b7a21ae
images with new gradient
Dec 19, 2017
624e358
Merge pull request #23 from daschw/readme
Dec 20, 2017
c7454cd
get Juno theme colors from Atom syntax theme
pfitzseb Feb 9, 2018
e803703
automatically generate gradient
pfitzseb Feb 9, 2018
43d5b1e
formatting
pfitzseb Feb 9, 2018
054e0f0
Merge pull request #26 from pfitzseb/sp/juno
daschw Mar 1, 2018
be569df
0.7 fixes
daschw Jul 1, 2018
5a12bbf
Merge pull request #27 from daschw/julia07
daschw Jul 1, 2018
a93e0bb
fix juno integration
pfitzseb Aug 28, 2018
a6b64ef
Merge pull request #28 from pfitzseb/sp/newjuno
mkborregaard Aug 28, 2018
675a5f8
Improving ggplot2 theme
greimel Oct 16, 2018
cfd7386
Merge pull request #30 from greimel/gre/ggplot2
mkborregaard Nov 19, 2018
9e3961e
move to Project.toml and bump version
aviatesk Oct 8, 2019
de41266
Merge pull request #34 from aviatesk/bumpversion
mkborregaard Oct 8, 2019
4b24889
add gruvbox themes
Nov 25, 2019
e8f8eb8
add gruvbox to readme
Nov 25, 2019
73f20e1
replace gradient with colorgradient to avoid confusion with Plots qui…
daschw Nov 26, 2019
19cfabe
add upper bounds on deps
daschw Nov 26, 2019
4cd83e9
add colorgradients in readme
daschw Nov 26, 2019
40ae50f
up version
daschw Nov 26, 2019
368b09f
add bounds for requires
daschw Nov 27, 2019
24d7850
Merge pull request #36 from daschw/colorgradient
daschw Nov 27, 2019
631f8f0
Create CompatHelper.yml
daschw Nov 27, 2019
7257f8b
Create labeler.yml
FrancisJ000 Dec 6, 2019
73ba80d
Delete labeler.yml
FrancisJ000 Dec 6, 2019
b4fe935
Create labeler.yml
FrancisJ000 Dec 6, 2019
dcb3e4b
Create label.yml
FrancisJ000 Dec 6, 2019
9365026
Merge pull request #37 from FrancisJ000/master
daschw Dec 8, 2019
a9b10e0
CompatHelper: bump compat for "Requires" to "1.0"
github-actions[bot] Dec 12, 2019
209f98a
Merge pull request #39 from JuliaPlots/compathelper/new_version/2019-…
daschw Dec 12, 2019
729de6b
Merge pull request #35 from zacharyneveu/master
daschw Dec 14, 2019
d75b1e9
gradient -> colorgradient for gruvbox
daschw Dec 14, 2019
134b1ed
update readme images
daschw Dec 14, 2019
0ac2203
Merge pull request #41 from daschw/readme
daschw Dec 14, 2019
5fca739
implement sheet theme
daschw Dec 13, 2019
dad3546
add showtheme images to readme
daschw Dec 14, 2019
b6ae935
Merge pull request #42 from daschw/sheet
daschw Dec 16, 2019
d52a689
up version
daschw Dec 16, 2019
13cf637
Merge pull request #43 from daschw/release
daschw Dec 16, 2019
ac77521
Set more font colors to white
gileshd Jan 22, 2020
5783987
Merge pull request #45 from gileshd/master
mkborregaard Jan 22, 2020
ecb62f2
Install TagBot as a GitHub Action
JuliaTagBot Feb 8, 2020
589c98b
Merge pull request #46 from JuliaTagBot/master
daschw Feb 9, 2020
5ec43dd
bump version
daschw Mar 27, 2020
f1f3380
Merge pull request #47 from daschw/release
daschw Mar 27, 2020
e4ae3f9
Test labeler
asinghvi17 Apr 2, 2020
7d7fbcc
fix juno error
daschw Apr 6, 2020
22682d4
bump version
daschw Apr 6, 2020
08f4541
Merge branch 'master' into juno
daschw Apr 6, 2020
4e4752b
Merge pull request #49 from JuliaPlots/as/labeler
daschw Apr 6, 2020
2ffd933
Merge pull request #50 from daschw/juno
daschw Apr 6, 2020
4e90526
test on current julia versions
daschw Apr 6, 2020
6ff34f1
Merge pull request #51 from daschw/travis
daschw Apr 6, 2020
13fdba6
bump version
daschw Apr 6, 2020
e66b3bd
Merge pull request #52 from daschw/release
daschw Apr 6, 2020
aa7e94a
Update for ColorSchemes integration in PlotUtils
daschw Apr 11, 2020
80fec97
bump PlotUtils version
daschw Apr 16, 2020
041612f
Merge pull request #53 from daschw/colorschemes
daschw Apr 24, 2020
4a55713
Added missing themes to available themes
Jun 2, 2020
75553b8
Merge pull request #55 from apbraun/patch-1
daschw Jun 3, 2020
7f9748f
Add new theme, DAO
sefffal Jan 31, 2021
d650cfe
update README with new theme
sefffal Jan 31, 2021
d30076f
Updated plot colors & increased line thickness very slightly
sefffal Feb 5, 2021
6d253bb
Correct README preview to latest changes
sefffal Feb 5, 2021
1014436
Merge pull request #60 from sefffal/master
mkborregaard Feb 5, 2021
1e01859
up version to 2.0.1
mkborregaard Feb 5, 2021
a9eb027
Added Dracula theme
Oct 6, 2021
100e3d2
Add dracula to readme.
mtenders Oct 11, 2021
b736c38
Merge pull request #65 from mtenders/master
BeastyBlacksmith Oct 11, 2021
28dda1c
Update CompatHelper.yml
BeastyBlacksmith Nov 25, 2021
6c6c0ec
Update TagBot.yml
BeastyBlacksmith Jan 6, 2022
c3aede9
fix/ update urls in README.md (#66)
vandenman Feb 16, 2022
485b868
Rework themes to be explicitly const and remove Requires/Juno (#67)
sjkelly Mar 28, 2022
46813a5
add github actions CI
BeastyBlacksmith Mar 29, 2022
c91db9e
[skip ci]
BeastyBlacksmith Mar 29, 2022
fb3fca6
[skip ci]
BeastyBlacksmith Mar 29, 2022
82bdb66
3.0.0 [skip ci]
BeastyBlacksmith Mar 29, 2022
cda68dd
Export PlotTheme (#69)
diegozea Oct 11, 2022
10cfc75
3.1.0
BeastyBlacksmith Oct 11, 2022
1083fd8
added "rose_pine" and "rose_pine_dawn" (#72)
BaerLKR May 27, 2024
b2c6c05
3.2.0
BeastyBlacksmith May 27, 2024
2933cbc
New scientific theme with frame, and axes label alignment (#73)
mmikhasenko Oct 29, 2024
9e7f24d
3.3.0
BeastyBlacksmith Oct 29, 2024
f8ddff0
add deprecation warning
t-bltg Nov 4, 2024
f4ffe52
Note in README, and an image (#74)
mmikhasenko Nov 7, 2024
0cd59a5
Merge branch 'master' of /home/tb/Downloads/PlotThemes-monorepo/PlotT…
t-bltg Jan 23, 2026
acaf0a2
remove unrelated files
t-bltg Jan 23, 2026
4050b2a
update
t-bltg Jan 23, 2026
662ca50
backport v2 PRs
t-bltg Jan 23, 2026
9422c46
format repo
t-bltg Jan 23, 2026
b0385c5
fix [sources]
t-bltg Jan 23, 2026
634ba7c
fix CI
t-bltg Jan 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
Pkg.develop([
(; path="./RecipesBase"), # compat for LTS [sources], remove later
(; path="./RecipesPipeline"), # compat for LTS [sources], remove later
(; path="./PlotThemes"), # compat for LTS [sources], remove later
(; path="./Plots"), # compat for LTS [sources], remove later
])
include(joinpath(@__DIR__, "ci", "matplotlib.jl"))
Expand All @@ -94,6 +95,7 @@ jobs:
using Pkg; Pkg.test([
"RecipesBase",
"RecipesPipeline",
"PlotThemes",
"Plots",
]; coverage=true)
'
Expand All @@ -112,7 +114,7 @@ jobs:
- uses: julia-actions/julia-processcoverage@latest
if: startsWith(matrix.os, 'ubuntu')
with:
directories: RecipesBase/src,RecipesPipeline/src,Plots/src
directories: RecipesBase/src,RecipesPipeline/src,PlotThemes/src,Plots/src
- uses: codecov/codecov-action@v4
if: startsWith(matrix.os, 'ubuntu')
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compathelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} # optional
run: |
julia -e 'using CompatHelper; CompatHelper.main(
subdirs=["RecipesBase", "RecipesPipeline", "Plots"]
subdirs=["RecipesBase", "RecipesPipeline", "PlotThemes", "Plots"]
)'
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@latest
- uses: julia-actions/cache@v2
- uses: fredrikekre/runic-action@v1
22 changes: 22 additions & 0 deletions PlotThemes/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The PlotThemes.jl package is licensed under the MIT "Expat" License:

> Copyright (c) 2016: Patrick Kofod Mogensen.
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
>
11 changes: 11 additions & 0 deletions PlotThemes/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name = "PlotThemes"
uuid = "ccf2f8ad-2431-5c83-bf29-c5338b663b6a"
version = "3.3.0"

[deps]
PlotUtils = "995b91a9-d308-5afd-9ec6-746e21dbc043"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
PlotUtils = "1"
julia = "1"
129 changes: 129 additions & 0 deletions PlotThemes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# WARNING

https://github.com/JuliaPlots/PlotThemes.jl is now integrated into https://github.com/JuliaPlots/Plots.jl for Plots v2, please make corresponding PRs there.

# PlotThemes

[![Build Status](https://travis-ci.org/JuliaPlots/PlotThemes.jl.svg?branch=master)](https://travis-ci.org/JuliaPlots/PlotThemes.jl)

#### Primary author: Patrick Kofod Mogensen (@pkofod)

PlotThemes is a package to spice up the plots made with [Plots.jl](https://github.com/JuliaPlots/Plots.jl). To install:

```julia
Pkg.add("PlotThemes")
```

## Using PlotThemes

Currently the following themes are available:
- `:default`
- `:dark`
- `:ggplot2`
- `:juno`
- `:lime`
- `:orange`
- `:sand`
- `:solarized`
- `:solarized_light`
- `:wong`
- `:wong2`
- `:boxed`
- `:gruvbox_dark`
- `:gruvbox_light`
- `:bright`
- `:vibrant`
- `:mute`
- `:dao`
- `:dracula`
- `:rose_pine`
- `:rose_pine_dawn`


When using Plots, a theme can be set using the `theme` function:
```julia
using Plots
theme(thm::Symbol; kwargs...)
```
`theme` accepts any Plots [attribute](https://docs.juliaplots.org/stable/attributes/) as keyword argument and sets its value as default for subsequent plots.

Themes can be previewed using `Plots.showtheme(thm::Symbol)`:

### `:default`
![theme_default](https://user-images.githubusercontent.com/16589944/70847841-7ca7ea00-1e69-11ea-851e-e99d8559260d.png)

### `:dark`
![theme_dark](https://user-images.githubusercontent.com/16589944/70847843-8d586000-1e69-11ea-9e39-5d4c44865750.png)

### `:ggplot2`
![theme_ggplot2](https://user-images.githubusercontent.com/16589944/70847847-99442200-1e69-11ea-9ae8-ddd10ec4a303.png)

### `:juno`
![theme_juno](https://user-images.githubusercontent.com/16589944/70847860-be389500-1e69-11ea-88b9-2a3bb3bbcf64.png)

### `:lime`
![theme_lime](https://user-images.githubusercontent.com/16589944/70847863-c55fa300-1e69-11ea-8de7-3ef2a3a8ce30.png)

### `:orange`
![theme_orange](https://user-images.githubusercontent.com/16589944/70847866-cf81a180-1e69-11ea-813a-7e4394311ef2.png)

### `:sand`
![theme_sand](https://user-images.githubusercontent.com/16589944/70847868-d4deec00-1e69-11ea-8aab-de94af02bbfe.png)

### `:solarized`
![theme_solarized](https://user-images.githubusercontent.com/16589944/70847869-dad4cd00-1e69-11ea-930e-b145e19bcff5.png)

### `:solarized_light`
![theme_solarized_light](https://user-images.githubusercontent.com/16589944/70847872-df998100-1e69-11ea-955a-7fcc2e7043de.png)

### `:wong`
![theme_wong](https://user-images.githubusercontent.com/16589944/70847875-e58f6200-1e69-11ea-904d-d4f7e27bb181.png)

### `:wong2`
![theme_wong2](https://user-images.githubusercontent.com/16589944/70847880-eaecac80-1e69-11ea-9b59-cdf937427121.png)

### `:boxed`
![theme_boxed](https://github.com/user-attachments/assets/ed1baaf1-4679-4d9a-9667-3118dc42200e)

### `:gruvbox_dark`
![theme_gruvbox_dark](https://user-images.githubusercontent.com/16589944/70847882-f049f700-1e69-11ea-94f8-255f2cd17288.png)

### `:gruvbox_light`
![theme_gruvbox_light](https://user-images.githubusercontent.com/16589944/70847885-fb048c00-1e69-11ea-9546-4dc0d9e4154c.png)

### `:bright`
![theme_bright](https://user-images.githubusercontent.com/16589944/70848065-8ed75780-1e6c-11ea-8e59-9882b3c4a4db.png)

### `:vibrant`
![theme_vibrant](https://user-images.githubusercontent.com/16589944/70848066-926ade80-1e6c-11ea-91ba-fd08d14e6963.png)

### `:mute`
![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)

### `:dracula`
![theme_dracula](https://user-images.githubusercontent.com/64332767/136754217-31d4348a-c873-4496-8b66-905e4d8a7e36.png)

### `:rose_pine`
![theme_rose_pine](https://github.com/BaerLKR/PlotThemes.jl/assets/83340886/30c869e5-2b90-405a-bc49-cf4ef3c43d75)

### `:rose_pine_dawn`
![theme_rose_pine_dawn](https://github.com/BaerLKR/PlotThemes.jl/assets/83340886/e30c0b46-1be3-49f5-afc5-ceede0b0c27d)

## Contributing
A theme specifies default values for different Plots [attributes](https://docs.juliaplots.org/stable/attributes/).
At the moment these are typically colors, palettes and colorgradients, but any Plots attribute can be controlled by a theme in general.
PRs for new themes very welcome! Adding a new theme (e.g. `mytheme`) is as easy as adding a new file (mytheme.jl) that contains at least the following line:
```julia
_themes[:mytheme] = PlotTheme(; kwargs...)
```
The keyword arguments can be any collection of Plots attributes plus a colorgradient keyword argument.
For adding the `showtheme` figure to `README.md`, use
```julia
Plots.showtheme(:your_theme)
plot!(dpi=400)
savefig("your_theme.png")
```
The image can be uploaded to the `README.md` file by pulling it in with the file-editing web interface.
87 changes: 87 additions & 0 deletions PlotThemes/src/PlotThemes.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
module PlotThemes

using PlotUtils

export add_theme, theme_palette, PlotTheme

_255_to_1(c::Symbol, colors) = RGBA(map(x -> x / 255, colors[c])...)
RGB255(r, g, b) = RGB(r / 255, g / 255, b / 255)

function expand_palette(bg, cs; kwargs...)
colors = palette(cs).colors.colors
c = convert.(RGBA, distinguishable_colors(20, vcat(bg, colors); kwargs...))[2:end]
return palette(c)
end

const KW = Dict{Symbol, Any}

struct PlotTheme
defaults::KW
end

PlotTheme(; kw...) = PlotTheme(KW(kw))

# adjust an existing theme
PlotTheme(base::PlotTheme; kw...) = PlotTheme(KW(base.defaults..., KW(kw)...))

"Get the palette of a PlotTheme"
function theme_palette(s::Symbol)
if haskey(_themes, s) && haskey(_themes[s].defaults, :palette)
return _themes[s].defaults[:palette]
else
return palette(:default)
end
end


# add themes
include("dark.jl")
include("ggplot2.jl")
include("solarized.jl")
include("sand.jl")
include("lime.jl")
include("orange.jl")
include("wong.jl")
include("boxed.jl")
include("juno.jl")
include("gruvbox.jl")
include("sheet.jl")
include("dao.jl")
include("dracula.jl")
include("rose_pine.jl")


const _themes = Dict{Symbol, PlotTheme}(
[
:default => PlotTheme(),
:dao => _dao,
:dark => _dark,
:ggplot2 => _ggplot2,
:gruvbox_light => _gruvbox_light,
:gruvbox_dark => _gruvbox_dark,
:solarized => _solarized,
:solarized_light => _solarized_light,
:sand => _sand,
:bright => _bright,
:vibrant => _vibrant,
:mute => _mute,
:wong => _wong,
:wong2 => _wong2,
:boxed => _boxed,
:juno => _juno,
:lime => _lime,
:orange => _orange,
:dracula => _dracula,
:rose_pine => _rose_pine,
:rose_pine_dawn => _rose_pine_dawn,

]
)


function add_theme(s::Symbol, thm::PlotTheme)
return _themes[s] = thm
end


end # module
22 changes: 22 additions & 0 deletions PlotThemes/src/boxed.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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]
),
]
)
)
32 changes: 32 additions & 0 deletions PlotThemes/src/dao.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const dao_palette = [
colorant"#d77255",
colorant"#009afa",
colorant"#707070",
colorant"#21ab74",
colorant"#ba3030",
colorant"#9467bd",
]

const _dao = PlotTheme(
Dict(
[
: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,
]
)
)
26 changes: 26 additions & 0 deletions PlotThemes/src/dark.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#inspired by nucleus theme for Atom
const dark_palette = [
colorant"#FE4365", # red
colorant"#eca25c", # orange
colorant"#3f9778", # green
colorant"#005D7F", # blue
]
const dark_bg = colorant"#363D46"

const _dark = PlotTheme(
Dict(
[
:bg => dark_bg,
:bginside => colorant"#30343B",
:fg => colorant"#ADB2B7",
:fgtext => colorant"#FFFFFF",
:fgguide => colorant"#FFFFFF",
:fglegend => colorant"#FFFFFF",
:legendfontcolor => colorant"#FFFFFF",
:legendtitlefontcolor => colorant"#FFFFFF",
:titlefontcolor => colorant"#FFFFFF",
:palette => expand_palette(dark_bg, dark_palette; lchoices = [57], cchoices = [100]),
:colorgradient => :fire,
]
)
)
Loading
Loading