Skip to content

Commit

Permalink
Merge pull request #11 from crbinz/new-tick-scoring
Browse files Browse the repository at this point in the history
WIP: Fix to tick scoring function
  • Loading branch information
Daniel Schwabeneder authored Apr 24, 2017
2 parents 1268dc1 + e88b3d5 commit 568a66b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ticks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ function optimize_ticks_typed{T}(x_min::T, x_max::T, extend_ticks,
# strict limits on coverage
if strict_span && span > xspan
score -= 10000
if span >= 4.0*xspan
score -= 1000
end
elseif !strict_span && (span >= 2.0*xspan || span < xspan)
score -= 1000
end
Expand Down

0 comments on commit 568a66b

Please sign in to comment.