fix default
This commit is contained in:
parent
8ae8d74c42
commit
a1c59b7904
@ -681,12 +681,16 @@ 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)
|
||||||
get(plotattributes, k, default(k))
|
get(plotattributes, k, default(k))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user