Skip to content

Commit

Permalink
do not draw tick labels when showaxis is false (#4551)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Nov 24, 2022
1 parent 7e98759 commit 059c7ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backends/gr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,7 @@ gr_draw_ticks(sp, axis, segments, func = gr_polyline) =
function gr_label_ticks(sp, letter, ticks)
letters = axes_letters(sp, letter)
ax, oax = map(l -> sp[get_attr_symbol(l, :axis)], letters)
ax[:showaxis] || return
_, (oamin, oamax) = map(l -> axis_limits(sp, l), letters)

gr_set_tickfont(sp, letter)
Expand Down Expand Up @@ -1530,6 +1531,7 @@ function gr_label_ticks_3d(sp, letter, ticks)
letters = axes_letters(sp, letter)
_, (namin, namax), (famin, famax) = map(l -> axis_limits(sp, l), letters)
ax = sp[get_attr_symbol(letter, :axis)]
ax[:showaxis] || return

isy, isz = letter .=== (:y, :z)
n0, n1 = isy ? (namax, namin) : (namin, namax)
Expand Down

0 comments on commit 059c7ac

Please sign in to comment.