tick factor reversion

This commit is contained in:
Nicholas Bauer 2021-09-18 11:43:12 -04:00
parent b12782c4c0
commit 85aae30fb3

View File

@ -1550,9 +1550,8 @@ function gr_label_ticks(sp, letter, ticks)
oamin, oamax = axis_limits(sp, oletter) oamin, oamax = axis_limits(sp, oletter)
gr_set_tickfont(sp, letter) gr_set_tickfont(sp, letter)
out_factor = ifelse(axis[:tick_direction] === :out, 1.5, 1) out_factor = ifelse(axis[:tick_direction] === :out, 1.5, 1)
tick_offset = -5e-4 * out_factor * axis[:tickfontsize] x_base_offset = isy ? -1.5e-2 * out_factor : 0
x_base_offset = isy ? tick_offset : 0 y_base_offset = isy ? 0 : -8e-3 * out_factor
y_base_offset = isy ? 0 : tick_offset
rot = axis[:rotation] % 360 rot = axis[:rotation] % 360
ov = sp[:framestyle] == :origin ? 0 : xor(oaxis[:flip], axis[:mirror]) ? oamax : oamin ov = sp[:framestyle] == :origin ? 0 : xor(oaxis[:flip], axis[:mirror]) ? oamax : oamin