From 593804096d9ef333b7bb47da963dc7dff90db5f0 Mon Sep 17 00:00:00 2001 From: Roshan Shariff Date: Tue, 14 Aug 2018 15:38:55 -0600 Subject: [PATCH] Fix julia 0.7 deprecated syntax in Plotly backend. --- src/backends/plotly.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 51c24c85..810a5e88 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -645,7 +645,7 @@ end function plotly_series_shapes(plt::Plot, series::Series) segments = iter_segments(series) - d_outs = Vector{KW}(length(segments)) + d_outs = Vector{KW}(undef, length(segments)) # TODO: create a d_out for each polygon # x, y = series[:x], series[:y] @@ -707,7 +707,7 @@ function plotly_series_segments(series::Series, d_base::KW, x, y, z) (isa(series[:fillrange], AbstractVector) || isa(series[:fillrange], Tuple)) segments = iter_segments(series) - d_outs = Vector{KW}((hasfillrange ? 2 : 1 ) * length(segments)) + d_outs = Vector{KW}(undef, (hasfillrange ? 2 : 1 ) * length(segments)) for (i,rng) in enumerate(segments) !isscatter && length(rng) < 2 && continue