Skip to content

Commit

Permalink
Fix: rticklabelsvisible and thetaticklabelsvisible are now functi…
Browse files Browse the repository at this point in the history
…onnal for `PolarAxis`.
  • Loading branch information
Klafyvel committed Aug 21, 2023
1 parent 792ec81 commit 1f95d49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/makielayout/blocks/polaraxis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ function draw_axis!(po::PolarAxis, axis_radius)
color = po.rticklabelcolor,
strokewidth = po.rticklabelstrokewidth,
strokecolor = rstrokecolor,
visible = po.rticklabelsvisible,
align = map(po.direction, po.theta_0, po.rtickangle) do dir, theta_0, angle
s, c = sincos(dir * (angle + theta_0))
scale = 1 / max(abs(s), abs(c)) # point on ellipse -> point on bbox
Expand All @@ -273,7 +274,8 @@ function draw_axis!(po::PolarAxis, axis_radius)
color = po.thetaticklabelcolor,
strokewidth = po.thetaticklabelstrokewidth,
strokecolor = thetastrokecolor,
align = thetatick_align[]
align = thetatick_align[],
visible = po.thetaticklabelsvisible
)

# Hack to deal with synchronous update problems
Expand Down

0 comments on commit 1f95d49

Please sign in to comment.