Merge pull request #1288 from mkborregaard/add-scatterpath

added scatterpath series recipe
This commit is contained in:
Michael Krabbe Borregaard 2017-12-07 12:04:08 +01:00 committed by GitHub
commit bf6e8d3c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,25 @@ end
end
@deps vline path
# ---------------------------------------------------------------------------
# path and scatter
# create a path from steps
@recipe function f(::Type{Val{:scatterpath}}, x, y, z)
x := x
y := y
seriestype := :scatter
@series begin
seriestype := :path
label := ""
primary := false
()
end
()
end
@deps scatterpath path scatter
# ---------------------------------------------------------------------------
# steps