Merge pull request #2233 from daschw/minorgrid

allow minorgrid = true for only two tick values
This commit is contained in:
Daniel Schwabeneder 2019-10-31 20:18:43 +01:00 committed by GitHub
commit 464c0271f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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