Skip to content

Commit

Permalink
Update Makie plotting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Mar 1, 2025
1 parent 5076850 commit 67cdb71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ module MakieTest
save("concordia.png",f)
img = load("concordia.png")
@test size(img) == (900, 1200)
@test sum(img)/length(img) RGB{Float64}(0.8524913580246877,0.8524913580246877,0.9885884168482209) rtol = 0.02
@test sum(img)/length(img) RGBA{Float64}(0.8524913580246877, 0.8524913580246877, 0.9885884168482209, 1.0) rtol = 0.02
rm("concordia.png")

# Plot many concordia ellipses and concordia curve
Expand All @@ -522,7 +522,7 @@ module MakieTest
save("concordia.png",f2)
img = load("concordia.png")
@test size(img) == (900, 1200)
@test sum(img)/length(img) RGB{Float64}(0.9523360547065816,0.9523360547065816,0.9661779080315414) rtol = 0.01
@test sum(img)/length(img) RGBA{Float64}(0.9525158605664497, 0.9525158605664497, 0.9663422004357308, 1.0) rtol = 0.01
rm("concordia.png")

# Plot single concordia line
Expand All @@ -533,7 +533,7 @@ module MakieTest
save("concordia.png",f3)
img = load("concordia.png")
@test size(img) == (900, 1200)
@test sum(img)/length(img) RGB{Float64}(0.9845678970995279,0.9845678970995279,0.9845678970995279) rtol = 0.01
@test sum(img)/length(img) RGBA{Float64}(0.9847984095860566, 0.9847984095860566, 0.9847984095860566, 1.0) rtol = 0.01
rm("concordia.png")

end
Expand Down

0 comments on commit 67cdb71

Please sign in to comment.