Merge pull request #1968 from daschw/ticks

fix multiple drawing of discrete ticks
This commit is contained in:
Daniel Schwabeneder 2019-03-28 09:24:46 +01:00 committed by GitHub
commit b300e634f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ function get_ticks(axis::Axis)
# discrete ticks...
n = length(dvals)
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
1:n
end