Merge pull request #1968 from daschw/ticks
fix multiple drawing of discrete ticks
This commit is contained in:
commit
b300e634f6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user