From 1f95d4927496cbebbe7d63bbcf9938398a77f612 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Mon, 21 Aug 2023 22:16:55 +0200 Subject: [PATCH] Fix: `rticklabelsvisible` and `thetaticklabelsvisible` are now functionnal for `PolarAxis`. --- src/makielayout/blocks/polaraxis.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/makielayout/blocks/polaraxis.jl b/src/makielayout/blocks/polaraxis.jl index f536dfdbe53..a5b5f5ee487 100644 --- a/src/makielayout/blocks/polaraxis.jl +++ b/src/makielayout/blocks/polaraxis.jl @@ -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 @@ -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