From cd20518323e6fae962ec42a3603092fbedb3f6f4 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 3 Jul 2020 15:40:46 +0200 Subject: [PATCH 1/2] 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 From 2544808000f668b0695943ec8e3694c6acb2ee31 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 3 Jul 2020 16:31:03 +0200 Subject: [PATCH 2/2] update errorbar example --- src/examples.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples.jl b/src/examples.jl index 1c39a962..f0884b20 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -973,8 +973,8 @@ const _examples = PlotExample[ surf = Measurement.((1:10) .* (1:10)', rand(10,10)) plot( - scatter(x, [x y], msw = 0), - scatter(x, y, z, msw = 0), + scatter(x, [x y]), + scatter(x, y, z), heatmap(x, y, surf), wireframe(x, y, surf), legend = :topleft