Skip to content

Commit

Permalink
Separate matplotlib versions
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Jun 17, 2024
1 parent 9364993 commit c3409e8
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,23 @@ end
plotdata(bd, "p bx;by", plotmode="contbar streamover")
@test isa(gca(), PyPlot.PyObject)
c = PyPlot.contourf(bd, "p")
@test c.get_array()[end] == 1.0500000000000003
@static if matplotlib.__version__ < "3.8"
@test c.get_array()[end] == 1.0500000000000003
else
@test c.get_array()[end] == 0.9750000000000002
end
c = PyPlot.contourf(bd, "rho", innermask=true)
@test c.get_array()[end] == 1.0500000000000003
@static if matplotlib.__version__ < "3.8"
@test c.get_array()[end] == 1.0500000000000003
else
@test c.get_array()[end] == 0.9750000000000002
end
c = PyPlot.contour(bd, "rho")
@test c.get_array()[end] == 1.0500000000000003
@static if matplotlib.__version__ < "3.8"
@test c.get_array()[end] == 1.0500000000000003
else
@test c.get_array()[end] == 0.9750000000000002
end
c= PyPlot.contour(bd, "rho"; levels=[1.0])
@test c.get_array()[end] == 1.0
c = PyPlot.tricontourf(bd, "rho")
Expand Down

0 comments on commit c3409e8

Please sign in to comment.