fix sign check

This commit is contained in:
Simon Christ 2021-10-04 17:23:11 +02:00 committed by GitHub
parent a367f0d502
commit 0dc74ca02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1565,7 +1565,7 @@ function gr_label_ticks(sp, letter, ticks)
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
sgn = axis[:mirror] ? -1 : 1 sgn = axis[:mirror] ? -1 : 1
sgn2 = iseven(floor(rot / 90)) ? -1 : 1 sgn2 = iseven(Int(floor(rot / 90))) ? -1 : 1
sgn3 = if isy sgn3 = if isy
-360 < rot < -180 || 0 < rot < 180 ? 1 : -1 -360 < rot < -180 || 0 < rot < 180 ? 1 : -1
else else