only widen axis limits for identity scale; closes #326

This commit is contained in:
Thomas Breloff 2016-06-12 20:22:57 -04:00
parent 5bb9aceaac
commit 36a29357a3

View File

@ -219,14 +219,17 @@ function widen(lmin, lmax)
lmin-eps, lmax+eps lmin-eps, lmax+eps
end end
# figure out if widening is a good idea # figure out if widening is a good idea. if there's a scale set it's too tricky,
# so lazy out and don't widen
function default_should_widen(axis::Axis) function default_should_widen(axis::Axis)
should_widen = false should_widen = false
if axis[:scale] == :identity
for series in series_list(axis.sp) for series in series_list(axis.sp)
if series.d[:seriestype] in (:scatter,) || series.d[:markershape] != :none if series.d[:seriestype] in (:scatter,) || series.d[:markershape] != :none
should_widen = true should_widen = true
end end
end end
end
should_widen should_widen
end end