Skip to content

Commit

Permalink
Explicitly enable clipping for polar grid lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Aug 20, 2024
1 parent cb6d0ff commit a394741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jlgr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ function draw_polar_axes(pass=1, plt=plt[])
end

if pass == 1
GR.setclip(1)
for i in 0:n
r = i * tick / (rmax - rmin)
if 0 < r < 1
Expand All @@ -670,7 +671,6 @@ function draw_polar_axes(pass=1, plt=plt[])
end
end
end

GR.setclip(0)
GR.setlinecolorind(88)
GR.drawarc(-1, 1, -1, 1, 0, 360)
Expand Down

0 comments on commit a394741

Please sign in to comment.