Update recipes.jl

This commit is contained in:
matthieugomez 2021-04-07 14:42:12 -07:00
parent 64f3d589b6
commit 50adb6cd9c

View File

@ -161,7 +161,6 @@ end
# path and scatter # path and scatter
# create a path from steps # create a path from steps
# see https://github.com/JuliaPlots/Plots.jl/issues/1495
@recipe function f(::Type{Val{:scatterpath}}, x, y, z) @recipe function f(::Type{Val{:scatterpath}}, x, y, z)
x := x x := x
y := y y := y
@ -186,9 +185,9 @@ end
# plots line corresponding to linear regression of y on a constant and x # plots line corresponding to linear regression of y on a constant and x
@recipe function f(::Type{Val{:linearfit}}, x, y, z) @recipe function f(::Type{Val{:linearfit}}, x, y, z)
seriestype := :scatter
x := x x := x
y := y y := y
seriestype := :scatter
@series begin @series begin
() ()
end end