changeset 1467:5630df84d99f

Make all eps the same (hoping to fix the test that only fails in Travis)
author Chris Cannam
date Wed, 16 May 2018 15:47:16 +0100
parents f68911282993
children 5f23274e21f9
files base/ScaleTickIntervals.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/ScaleTickIntervals.h	Tue May 15 15:50:40 2018 +0100
+++ b/base/ScaleTickIntervals.h	Wed May 16 15:47:16 2018 +0100
@@ -154,7 +154,7 @@
             // to 2 or a min of -0.9999999999 rounding to 0, both of
             // which would prevent some of our test cases from getting
             // the most natural results.
-            double eps = 1e-8;
+            double eps = 1e-7;
             inc = round(inc / roundTo + eps) * roundTo;
             if (inc < roundTo) inc = roundTo;
             min = ceil(min / roundTo - eps) * roundTo;
@@ -266,7 +266,7 @@
 
         if (display == Auto) {
 
-            double eps = 1e-10;
+            double eps = 1e-7;
             
             int digits = (value != 0.0 ?
                           1 + int(floor(eps + log10(abs(value)))) :