diff --git a/README.md b/README.md index 9f95461..1580ab9 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ - Projective coordinates - Parallelization -- Endgames(?) +- Extract functions in separate modules(?) ## Example system @@ -20,6 +20,6 @@ xy - 1 &= 0 \\ \end{align*} $$ -Plot of our approximate solutions: +Plot of the approximate solutions: ![](solutions.png) diff --git a/hc.jl b/hc.jl index e569d73..6aa7f74 100644 --- a/hc.jl +++ b/hc.jl @@ -86,8 +86,8 @@ end function plot_real(solutions, F) p=plot(xlim = (-3, 3), ylim = (-3, 3), aspect_ratio = :equal) - contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[1](variables(F)=>[x,y]), levels=[0], color=:cyan) - contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[2](variables(F)=>[x,y]), levels=[0], color=:green) + contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[1](variables(F)=>[x,y]), levels=[0], cbar=false, color=:cyan) + contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[2](variables(F)=>[x,y]), levels=[0], cbar=false, color=:green) scatter!([real(sol[1]) for sol in solutions], [real(sol[2]) for sol in solutions], color = "red", label = "Solutions") png("solutions") diff --git a/solutions.png b/solutions.png index 19d7713..98a5e8c 100644 Binary files a/solutions.png and b/solutions.png differ