avoid auto-reduction of user-defined ticks

This commit is contained in:
Daniel Schwabeneder 2017-05-02 21:10:43 +02:00
parent 906f11ed76
commit af072da0b0

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