inline/remove top level oneliners
This commit is contained in:
parent
ec21f4c6e8
commit
9484597491
@ -6,12 +6,10 @@ module Lib exposing(looseLabels)
|
||||
|
||||
-- https://github.com/cenfun/nice-ticks/blob/master/docs/Nice-Numbers-for-Graph-Labels.pdf
|
||||
|
||||
log10 x = logBase 10 x
|
||||
expt b x = b^(toFloat x)
|
||||
|
||||
niceNumber x round =
|
||||
let exp = floor (log10 x)
|
||||
f = x / (expt 10.0 exp)
|
||||
let expt b ex = b^ toFloat ex
|
||||
exp = floor (logBase 10 x)
|
||||
f = x / expt 10.0 exp
|
||||
nfRound = if f < 1.5
|
||||
then 1
|
||||
else if f < 3
|
||||
|
Loading…
Reference in New Issue
Block a user