Merge pull request #793 from daschw/ds-ticks-reduction

Avoid reducing the number of ticks set by the user
This commit is contained in:
Daniel Schwabeneder 2017-05-04 16:17:57 +02:00 committed by GitHub
commit 58989465f4

View File

@ -238,7 +238,7 @@ function get_ticks(axis::Axis)
# @show ticks dvals cv dv
# 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)]
cv[rng], dv[rng]
else