Skip to content

Commit

Permalink
Fix matplotlib version test again
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Dec 16, 2024
1 parent de9c730 commit 693b8da
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 @@ -188,13 +188,13 @@ end
c = PyPlot.streamplot(bd, "bx;by")
@test c.lines.get_segments()[2][3] -118.68871477694084
c = PyPlot.contourf(bd, "p")
@static if startswith(matplotlib.__version__, "3.9") || Sys.isapple() || Sys.iswindows()
@static if startswith(matplotlib.__version__, "3.9")
@test c.get_array()[end] == 1.0500000000000003
else
@test c.get_array()[end] == 0.9750000000000002
end
c = @suppress_err PyPlot.contourf(bd, "rho", innermask=true)
@static if startswith(matplotlib.__version__, "3.9") || Sys.isapple() || Sys.iswindows()
@static if startswith(matplotlib.__version__, "3.9")
@test c.get_array()[end] == 1.0500000000000003
else
@test c.get_array()[end] == 0.9750000000000002
Expand All @@ -204,7 +204,7 @@ end
c= PyPlot.contour(bd, "rho"; levels=[1.0])
@test c.get_array()[end] == 1.0
c = PyPlot.tricontourf(bd, "rho")
@static if startswith(matplotlib.__version__, "3.9") || Sys.isapple() || Sys.iswindows()
@static if startswith(matplotlib.__version__, "3.9")
@test c.get_array()[end] == 1.0500000000000003
else
@test c.get_array()[end] == 0.9750000000000002
Expand Down

0 comments on commit 693b8da

Please sign in to comment.