From 2c6f54579d4d33601f3515766e2e3f16290c9a50 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Wed, 8 Jan 2020 15:33:49 +0100 Subject: [PATCH] informative assertion message --- src/backends/pgfplotsx.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 8a1c6da0..c6fac7c5 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -263,7 +263,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) # fill between functions if sf isa Tuple && series[:ribbon] === nothing sf1, sf2 = sf - @assert sf1 == series_index + @assert sf1 == series_index "First index of the tuple has to match the current series index." push!(axis, series_func( merge(pgfx_fillstyle(opt, series_index), PGFPlotsX.Options("forget plot" => nothing)), "fill between [of=$series_id and $(_pgfplotsx_series_ids[Symbol(string(sf2))])]"