fix multiple drawing of discrete ticks

This commit is contained in:
Daniel Schwabeneder 2019-03-27 17:37:47 +01:00
parent 4849772435
commit 5ec80ad1f1

View File

@ -251,7 +251,7 @@ function get_ticks(axis::Axis)
# discrete ticks... # discrete ticks...
n = length(dvals) n = length(dvals)
rng = if ticks == :auto rng = if ticks == :auto
Int[round(Int,i) for i in range(1, stop=n, length=15)] Int[round(Int,i) for i in range(1, stop=n, length=min(n,15))]
else # if ticks == :all else # if ticks == :all
1:n 1:n
end end