From 34ddc70835c195037e5cba7e8faf9b0c773e27b9 Mon Sep 17 00:00:00 2001 From: Datseris Date: Wed, 22 Apr 2020 16:49:50 +0200 Subject: [PATCH 1/2] fix arc Closes #404 --- Project.toml | 2 +- src/basic_recipes/basic_recipes.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index fdae5b4d4..b4ebd27b4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "AbstractPlotting" uuid = "537997a7-5e4e-5d89-9595-2241ea00577e" -version = "0.10.4" +version = "0.10.5" [deps] AbstractNumbers = "85c772de-338a-5e7f-b815-41e76c26ac1f" diff --git a/src/basic_recipes/basic_recipes.jl b/src/basic_recipes/basic_recipes.jl index 0648bbf4f..27384b411 100644 --- a/src/basic_recipes/basic_recipes.jl +++ b/src/basic_recipes/basic_recipes.jl @@ -478,7 +478,7 @@ function plot!(p::Arc) args = getindex.(p, (:origin, :radius, :start_angle, :stop_angle, :resolution)) positions = lift(args...) do origin, radius, start_angle, stop_angle, resolution map(range(start_angle, stop=stop_angle, length=resolution)) do angle - origin .+ Point2f0((sin(angle), cos(angle)) .* radius) + origin .+ Point2f0((cos(angle), sin(angle)) .* radius) end end lines!(p, Theme(p), positions) From 3e4189f32a920b67dd07d041f7c1c84a84e1eaf4 Mon Sep 17 00:00:00 2001 From: George Datseris Date: Wed, 22 Apr 2020 17:24:13 +0200 Subject: [PATCH 2/2] Update Project.toml Co-Authored-By: Anshul Singhvi --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index b4ebd27b4..fdae5b4d4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "AbstractPlotting" uuid = "537997a7-5e4e-5d89-9595-2241ea00577e" -version = "0.10.5" +version = "0.10.4" [deps] AbstractNumbers = "85c772de-338a-5e7f-b815-41e76c26ac1f"