From 203e351cefb6b9956308cb5265fe76e36ab7c7c5 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Mon, 9 Dec 2019 11:17:37 +0100 Subject: [PATCH] fix scalar ribbon --- src/backends/pgfplotsx.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 6578ff0f..7ff357f1 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -624,6 +624,8 @@ function pgfx_add_ribbons!( axis, series, segment_plot, series_func, series_inde ribbon_ym = repeat(ribbon_ym, outer = ribbon_nm) ribbon_np = length(opt[:y]) รท length(ribbon_yp) ribbon_yp = repeat(ribbon_yp, outer = ribbon_np) + else + ribbon_yp = ribbon_ym = ribbon_y end # upper ribbon rib_uuid = uuid4()