Small bugfix

This commit is contained in:
Adrian Dawid 2020-08-13 21:10:28 +02:00
parent e594e22c68
commit 5916055eeb

View File

@ -578,7 +578,7 @@ function plotly_series(plt::Plot, series::Series)
if series[:connections] != nothing if series[:connections] != nothing
if typeof(series[:connections]) <: Tuple{Array,Array,Array} if typeof(series[:connections]) <: Tuple{Array,Array,Array}
i,j,k = series[:connections] i,j,k = series[:connections]
if length(i) == length(j) == length(k) if !(length(i) == length(j) == length(k))
throw(ArgumentError("Argument connections must consist of equally sized arrays.")) throw(ArgumentError("Argument connections must consist of equally sized arrays."))
end end
plotattributes_out[:i] = i plotattributes_out[:i] = i