fix multiple drawing of discrete ticks
This commit is contained in:
parent
4849772435
commit
5ec80ad1f1
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user