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