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 <bernd.riederer@student.tugraz.at>
This commit is contained in:
BerndR 2020-10-01 20:55:12 +02:00 committed by GitHub
parent 514a7c4fff
commit f4fe4b8a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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