more regular automatic categorical ticks
This commit is contained in:
parent
8ce603d3eb
commit
16b9fc08ac
@ -227,8 +227,9 @@ function get_ticks(sp::Subplot, axis::Axis; update = true)
|
|||||||
if !isempty(dvals)
|
if !isempty(dvals)
|
||||||
# discrete ticks...
|
# discrete ticks...
|
||||||
n = length(dvals)
|
n = length(dvals)
|
||||||
rng = if ticks == :auto
|
rng = if ticks == :auto && n > 15
|
||||||
Int[round(Int,i) for i in range(1, stop=n, length=min(n,15))]
|
Δ = ceil(Int, n / 10)
|
||||||
|
Δ:Δ:n
|
||||||
else # if ticks == :all
|
else # if ticks == :all
|
||||||
1:n
|
1:n
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user