From 9d67d1e15cc54eef90aea01b03b9196dece9a56c Mon Sep 17 00:00:00 2001 From: Jerry Ling Date: Mon, 12 Oct 2020 08:13:04 -0400 Subject: [PATCH] more friendly error when x,y shape mis-match (#65) * more friendly error when x,y shape mis-match * don't touch z --- RecipesPipeline/src/series.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RecipesPipeline/src/series.jl b/RecipesPipeline/src/series.jl index 3bd86f3a8..b3b35d028 100644 --- a/RecipesPipeline/src/series.jl +++ b/RecipesPipeline/src/series.jl @@ -92,6 +92,10 @@ _nobigs(v) = v x = _compute_x(x, y, z) y = _compute_y(x, y, z) z = _compute_z(x, y, z) + if !isnothing(x) && isnothing(z) + n = size(x,1) + !isnothing(y) && size(y,1) != n && error("Expects $n elements in each col of y, found $(size(y,1)).") + end _nobigs(x), _nobigs(y), _nobigs(z) end