From 9f712b44f34fce4efa927f7d1439e3b93fc114db Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 21 Jul 2017 09:12:27 +0200 Subject: [PATCH] add ribbon area to marker --- src/backends/gr.jl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 6168a1de..acb06b04 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -1049,16 +1049,19 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) should_add_to_legend(series) || continue st = series[:seriestype] gr_set_line(series[:linewidth], series[:linestyle], series[:linecolor]) #, series[:linealpha]) - if st == :path && (series[:fillrange] == nothing || series[:ribbon] != nothing) - GR.polyline([xpos - 0.07, xpos - 0.01], [ypos, ypos]) - elseif st == :shape || series[:fillrange] != nothing + + if st == :shape || series[:fillrange] != nothing gr_set_fill(series[:fillcolor]) #, series[:fillalpha]) l, r = xpos-0.07, xpos-0.01 b, t = ypos-0.4dy, ypos+0.4dy x = [l, r, r, l, l] y = [b, b, t, t, b] gr_polyline(x, y, GR.fillarea) - gr_polyline(x, y) + series[:ribbon] != nothing || gr_polyline(x, y) + end + + if st == :path && (series[:fillrange] == nothing || series[:ribbon] != nothing) + GR.polyline([xpos - 0.07, xpos - 0.01], [ypos, ypos]) end if series[:markershape] != :none