allow minorgrid = true for only two tick values
This commit is contained in:
parent
6b0e45c450
commit
798d78813a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user