From fddf11fa7c9afe164da87319d7e937822a742f1f Mon Sep 17 00:00:00 2001 From: Will Kearney Date: Sat, 6 Jan 2018 15:49:08 -0500 Subject: [PATCH] Error if linecolor is a vector Fixes #1325 --- src/pipeline.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pipeline.jl b/src/pipeline.jl index 8dc475cb..690d284c 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -394,6 +394,10 @@ function _process_seriesrecipe(plt::Plot, d::KW) d[:fillrange] = nothing end + if (d[:seriestype] == :path) && typeof(d[:linecolor]) <: Vector + error("1D column vectors not supported for color specification in line plots. Perhaps you meant to use a 2D row vector?") + end + # if it's natively supported, finalize processing and pass along to the backend, otherwise recurse if is_seriestype_supported(st) sp = _prepare_subplot(plt, d)