From 76e1f4720bad7d956dfd076311430f244dd96990 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 13 Mar 2017 16:05:30 +0100 Subject: [PATCH] avoid ignoring ticks set by the user --- src/axes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axes.jl b/src/axes.jl index dd36f824..d3893330 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -159,7 +159,7 @@ function optimal_ticks_and_labels(axis::Axis, ticks = nothing) # If the axis input was a Date or DateTime use a special logic to find # "round" Date(Time)s as ticks # TODO: maybe: non-trivial scale (:ln, :log2, :log10) for date/datetime - if axis[:formatter] in (dateformatter, datetimeformatter) && scale == :identity + if axis[:formatter] in (dateformatter, datetimeformatter) && ticks == nothing && scale == :identity return optimize_datetime_ticks(amin, amax; k_min = 2, k_max = 4) end