fix default

This commit is contained in:
Daniel Schwabeneder 2020-04-22 18:20:22 +02:00
parent 8ae8d74c42
commit a1c59b7904

View File

@ -681,11 +681,15 @@ function default(k::Symbol, v)
end end
function default(; kw...) function default(; kw...)
if isempty(kw)
reset_defaults()
else
kw = KW(kw) kw = KW(kw)
RecipesPipeline.preprocess_attributes!(kw) RecipesPipeline.preprocess_attributes!(kw)
for (k,v) in kw for (k,v) in kw
default(k, v) default(k, v)
end end
end
end end
function default(plotattributes::AKW, k::Symbol) function default(plotattributes::AKW, k::Symbol)