Skip to content

Commit

Permalink
Merge pull request #1879 from wfrgra/round_axis_limits
Browse files Browse the repository at this point in the history
stop default axis widen behaviour overriding axis limit rounding
  • Loading branch information
mkborregaard authored Jan 6, 2019
2 parents ba46299 + 9679eae commit 9985d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9985d30

Please sign in to comment.