From f4fe4b8a05323e5f1ab6705c2b593bdfcbf97355 Mon Sep 17 00:00:00 2001 From: BerndR <20151553+bernd1995@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:55:12 +0200 Subject: [PATCH] Changed labeling-behaviour of :sticks (#3017) * Changed labeling-behaviour of :sticks * Further adaptions to make sticks-label behavior as expected * Fixed for linecolor-attribute * Deleted some debugging println() * Changed primary-ness in sticks+marker Co-authored-by: bernd_uni --- src/recipes.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/recipes.jl b/src/recipes.jl index aac758a5..4083289a 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -280,9 +280,13 @@ end end fillrange := nothing seriestype := :path + if plotattributes[:linecolor] == :auto && plotattributes[:marker_z] !== nothing && plotattributes[:line_z] == nothing + line_z := plotattributes[:marker_z] + end - # create a secondary series for the markers + # create a primary series for the markers if plotattributes[:markershape] != :none + primary := false @series begin seriestype := :scatter x := x @@ -290,8 +294,7 @@ end if z !== nothing z := z end - label := "" - primary := false + primary := true () end markershape := :none