recipe fix for empty args in subplot

This commit is contained in:
Thomas Breloff 2016-05-06 11:51:23 -04:00
parent cd25c7acb2
commit 1808b81d59

View File

@ -21,7 +21,7 @@ _apply_recipe(d::KW, kw::KW) = ()
# if it's not a recipe, just do nothing and return the args
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
d[:n] = maximum(map(num_series, args))
end