Update recipes.jl
This commit is contained in:
parent
64f3d589b6
commit
50adb6cd9c
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user