diff --git a/src/Plots.jl b/src/Plots.jl index f4537b04..854b13bf 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -1,5 +1,3 @@ -__precompile__(true) - module Plots using Reexport diff --git a/src/components.jl b/src/components.jl index 8ca11574..8635c71b 100644 --- a/src/components.jl +++ b/src/components.jl @@ -7,7 +7,7 @@ nanpush!(a::AbstractVector{P2}, b) = (push!(a, P2(NaN,NaN)); push!(a, b)) nanappend!(a::AbstractVector{P2}, b) = (push!(a, P2(NaN,NaN)); append!(a, b)) nanpush!(a::AbstractVector{P3}, b) = (push!(a, P3(NaN,NaN,NaN)); push!(a, b)) nanappend!(a::AbstractVector{P3}, b) = (push!(a, P3(NaN,NaN,NaN)); append!(a, b)) -compute_angle(v::P2) = (angle = atan2(v[2], v[1]); angle < 0 ? 2π - angle : angle) +compute_angle(v::P2) = (angle = atan(v[2], v[1]); angle < 0 ? 2π - angle : angle) # ------------------------------------------------------------- diff --git a/test/imgcomp.jl b/test/imgcomp.jl index 8b6cda82..c1442686 100644 --- a/test/imgcomp.jl +++ b/test/imgcomp.jl @@ -34,7 +34,7 @@ function image_comparison_tests(pkg::Symbol, idx::Int; debug = false, popup = is backend() # ensure consistent results - srand(1234) + Random.seed!(1234) # reference image directory setup # refdir = joinpath(Pkg.dir("ExamplePlots"), "test", "refimg", string(pkg)) diff --git a/test/runtests.jl b/test/runtests.jl index 280c698f..fd9f00bf 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,7 +3,7 @@ module PlotsTests include("imgcomp.jl") # don't actually show the plots -srand(1234) +Random.seed!(1234) default(show=false, reuse=true) img_eps = isinteractive() ? 1e-2 : 10e-2