only widen axis limits for identity scale; closes #326
This commit is contained in:
parent
5bb9aceaac
commit
36a29357a3
11
src/axes.jl
11
src/axes.jl
@ -219,12 +219,15 @@ 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
|
||||||
for series in series_list(axis.sp)
|
if axis[:scale] == :identity
|
||||||
if series.d[:seriestype] in (:scatter,) || series.d[:markershape] != :none
|
for series in series_list(axis.sp)
|
||||||
should_widen = true
|
if series.d[:seriestype] in (:scatter,) || series.d[:markershape] != :none
|
||||||
|
should_widen = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
should_widen
|
should_widen
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user