From cd20518323e6fae962ec42a3603092fbedb3f6f4 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 3 Jul 2020 15:40:46 +0200 Subject: [PATCH] fix errorbar color for scatter --- src/recipes.jl | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index b92e0604..86bbf06a 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -1027,8 +1027,23 @@ end # Error Bars function error_style!(plotattributes::AKW) + msc = plotattributes[:markerstrokecolor] + msc = if msc === :match + plotattributes[:subplot][:foreground_color_subplot] + elseif msc === :auto + get_series_color( + plotattributes[:linecolor], + plotattributes[:subplot], + plotattributes[:series_plotindex], + plotattributes[:seriestype], + ) + else + msc + end + plotattributes[:seriestype] = :path - plotattributes[:markercolor] = plotattributes[:markerstrokecolor] + plotattributes[:markercolor] = msc + plotattributes[:linecolor] = msc plotattributes[:linewidth] = plotattributes[:markerstrokewidth] plotattributes[:label] = "" end