Merge pull request #793 from daschw/ds-ticks-reduction
Avoid reducing the number of ticks set by the user
This commit is contained in:
commit
58989465f4
@ -238,7 +238,7 @@ function get_ticks(axis::Axis)
|
|||||||
# @show ticks dvals cv dv
|
# @show ticks dvals cv dv
|
||||||
|
|
||||||
# TODO: better/smarter cutoff values for sampling ticks
|
# TODO: better/smarter cutoff values for sampling ticks
|
||||||
if length(cv) > 30
|
if length(cv) > 30 && ticks == :auto
|
||||||
rng = Int[round(Int,i) for i in linspace(1, length(cv), 15)]
|
rng = Int[round(Int,i) for i in linspace(1, length(cv), 15)]
|
||||||
cv[rng], dv[rng]
|
cv[rng], dv[rng]
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user