Merge pull request #1879 from wfrgra/round_axis_limits

stop default axis widen behaviour overriding axis limit rounding
This commit is contained in:
Michael Krabbe Borregaard 2019-01-06 08:11:43 +01:00 committed by GitHub
commit 9985d303ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -459,7 +459,7 @@ const _widen_seriestypes = (:line, :path, :steppre, :steppost, :sticks, :scatter
function default_should_widen(axis::Axis)
should_widen = false
if !is_2tuple(axis[:lims])
if !(is_2tuple(axis[:lims]) || axis[:lims] == :round)
for sp in axis.sps
for series in series_list(sp)
if series.plotattributes[:seriestype] in _widen_seriestypes