Merge pull request #2327 from daschw/theme

copy theme defaults
This commit is contained in:
Daniel Schwabeneder 2019-12-13 21:14:45 +01:00 committed by GitHub
commit b908202c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
Specify the colour theme for plots.
"""
function theme(s::Symbol; kw...)
defaults = PlotThemes._themes[s].defaults
defaults = copy(PlotThemes._themes[s].defaults)
_theme(s, defaults; kw...)
end