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)
|
||||
# discrete ticks...
|
||||
n = length(dvals)
|
||||
rng = if ticks == :auto
|
||||
Int[round(Int,i) for i in range(1, stop=n, length=min(n,15))]
|
||||
rng = if ticks == :auto && n > 15
|
||||
Δ = ceil(Int, n / 10)
|
||||
Δ:Δ:n
|
||||
else # if ticks == :all
|
||||
1:n
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user