Skip to content

Commit

Permalink
fix tightlimits test
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Sep 20, 2023
1 parent a3956bf commit d3bf414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/PolarAxis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@
@test ax.thetalimits[] == (0.0, 2pi)
@test ax.target_thetalims[] == (0.0, 2pi)

# surface should result in tight limits (indirectly tests tightlimits!())
# test tightlimits
fig = Figure()
ax = PolarAxis(fig[1, 1])
surface!(ax, 0.5pi..pi, 2..5, rand(10, 10))
tightlimits!(ax)

@test ax.rautolimitmargin[] == (0.0, 0.0)
@test ax.thetaautolimitmargin[] == (0.0, 0.0)
Expand Down

0 comments on commit d3bf414

Please sign in to comment.