From 1808b81d59888c628cca21ae46511d821688421a Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Fri, 6 May 2016 11:51:23 -0400 Subject: [PATCH] recipe fix for empty args in subplot --- src/recipes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index aba9c09f..fac61a42 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -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