recipe fix for empty args in subplot
This commit is contained in:
parent
cd25c7acb2
commit
1808b81d59
@ -21,7 +21,7 @@ _apply_recipe(d::KW, kw::KW) = ()
|
|||||||
|
|
||||||
# if it's not a recipe, just do nothing and return the args
|
# if it's not a recipe, just do nothing and return the args
|
||||||
function _apply_recipe(d::KW, kw::KW, args...; issubplot=false)
|
function _apply_recipe(d::KW, kw::KW, args...; issubplot=false)
|
||||||
if issubplot && !haskey(d, :n) && !haskey(d, :layout)
|
if issubplot && !isempty(args) && !haskey(d, :n) && !haskey(d, :layout)
|
||||||
# put in a sensible default
|
# put in a sensible default
|
||||||
d[:n] = maximum(map(num_series, args))
|
d[:n] = maximum(map(num_series, args))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user