Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #408 from Datseris/arcfix
Browse files Browse the repository at this point in the history
fix arc
  • Loading branch information
SimonDanisch authored Apr 22, 2020
2 parents cccabc2 + 3e4189f commit 2ca8deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "AbstractPlotting"
uuid = "537997a7-5e4e-5d89-9595-2241ea00577e"
version = "0.10.3"
version = "0.10.4"

[deps]
AbstractNumbers = "85c772de-338a-5e7f-b815-41e76c26ac1f"
Expand Down
2 changes: 1 addition & 1 deletion src/basic_recipes/basic_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ca8deb

Please sign in to comment.