[chronojump] ForceSensor capture graph: Better vertical space while capturing



commit d8638ffac167e1d3a9abef6fcf8026f7e5df11d2
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Sep 24 12:12:48 2019 +0200

    ForceSensor capture graph: Better vertical space while capturing

 src/forceSensor.cs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 9b3501bc..fbe9a873 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -533,12 +533,16 @@ public class ForceSensorCapturePoints
 
                if(p.Y < 0)
                {
-                       RealHeightG *= 2;
+                       //too drastic change that makes DrawingArea empty at capture
+                       //RealHeightG *= 2;
+                       RealHeightG += 20;
                        outsideGraph = true;
                }
                else if(p.Y > heightG)
                {
-                       RealHeightGNeg *= 2;
+                       //too drastic change that makes DrawingArea empty at capture
+                       //RealHeightGNeg *= 2;
+                       RealHeightGNeg += 20;
                        outsideGraph = true;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]