diff --git a/src/backends/gr.jl b/src/backends/gr.jl index a79cf62f..6168a1de 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -1049,7 +1049,7 @@ 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 || has_ribbon(series)) + 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 gr_set_fill(series[:fillcolor]) #, series[:fillalpha]) diff --git a/src/utils.jl b/src/utils.jl index 84d82ea5..d8aced3d 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -497,12 +497,6 @@ function make_fillrange_from_ribbon(kw::KW) kw[:fillrange] = make_fillrange_side(y, rib1), make_fillrange_side(y, rib2) end -# check if series has a ribbon -function has_ribbon(series::Series) - series[:ribbon] == nothing && return false - return series[:ribbon] > 0 -end - function get_sp_lims(sp::Subplot, letter::Symbol) axis_limits(sp[Symbol(letter, :axis)]) end