From 798d78813a7f12a4fcdf00b3a425bb126c447846 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 31 Oct 2019 14:28:19 +0100 Subject: [PATCH] allow minorgrid = true for only two tick values --- src/axes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axes.jl b/src/axes.jl index d3120886..085d2bc5 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -297,7 +297,7 @@ function get_minor_ticks(sp, axis, ticks) #Add one phantom tick either side of the ticks to ensure minor ticks extend to the axis limits if length(ticks) > 2 ratio = (ticks[3] - ticks[2])/(ticks[2] - ticks[1]) - elseif axis[:scale] == :none + elseif axis[:scale] in (:none, :identity) ratio = 1 else return nothing