Skip to content

Commit

Permalink
Change drawing order for polar axes
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Aug 19, 2024
1 parent f4e0e48 commit a2db49f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/jlgr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,11 @@ function draw_polar_axes(plt=plt[])
end
end

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

GR.setclip(1)
sign = if get(plt.kvs, :theta_direction, 1) > 0 1 else -1 end
offs = theta_zero_location[get(plt.kvs, :theta_zero_location, "E")]
for alpha in 0:45:315
Expand Down Expand Up @@ -693,10 +698,6 @@ function draw_polar_axes(plt=plt[])
text(0.5 * (viewport[1] + viewport[2]), vp[4] - 0.02, plt.kvs[:title])
end

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

GR.restorestate()
end

Expand Down

0 comments on commit a2db49f

Please sign in to comment.