From 3964cc19a6065850cb7306e782cb9bb3b4dc0057 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 21 Sep 2020 22:15:47 +0200 Subject: [PATCH] fix ribbon/fillrange with OffsetArrays in plotly --- src/backends/plotly.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 4847f15f..332f2b6f 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -788,8 +788,7 @@ function plotly_series_segments(series::Series, plotattributes_base::KW, x, y, z else # if fillrange is a tuple with upper and lower limit, plotattributes_out_fillrange # is the series that will do the filling - fillrng = Tuple(series[:fillrange][i][rng] for i in 1:2) - plotattributes_out_fillrange[:x], plotattributes_out_fillrange[:y] = concatenate_fillrange(x[rng], fillrng) + plotattributes_out_fillrange[:x], plotattributes_out_fillrange[:y] = concatenate_fillrange(x[rng], series[:fillrange]) plotattributes_out_fillrange[:line][:width] = 0 delete!(plotattributes_out, :fill) delete!(plotattributes_out, :fillcolor)