From f16d8cf262f93ac0b3ff24b6307cc4287acc19a6 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 6 Oct 2017 00:59:25 +0200 Subject: [PATCH] fix bar errorbars --- src/pipeline.jl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pipeline.jl b/src/pipeline.jl index 39376894..223ae5af 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -100,8 +100,15 @@ function _process_userrecipe(plt::Plot, kw_list::Vector{KW}, recipedata::RecipeD plt.n += 1 kw[:series_plotindex] = plt.n - _add_errorbar_kw(kw_list, kw) - push!(kw_list, kw) + if get(kw, :seriestype, :path) == :bar + # errorbar in front of bars + push!(kw_list, kw) + _add_errorbar_kw(kw_list, kw) + else + # errorbar behind markers and lines etc. + _add_errorbar_kw(kw_list, kw) + push!(kw_list, kw) + end _add_smooth_kw(kw_list, kw) return end