[chronojump] Force sensor signal graph with "Force (N)" at y axis



commit 659e217653fbf1b5c5fd7449fe7a86feaa0aca16
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 12 19:08:22 2020 +0100

    Force sensor signal graph with "Force (N)" at y axis

 src/gui/app1/forceSensor.cs | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index f0fc246d..e0dfacca 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -2060,11 +2060,19 @@ LogB.Information(" fs R ");
                                        xPx - textWidth/2, force_capture_drawingarea.Allocation.Height - 
textHeight, layout_force_text);
                }
 
+
                //draw vertical line
                if(solid)
+               {
+                       layout_force_text.SetMarkup("Force (N)");
+                       layout_force_text.GetPixelSize(out textWidth, out textHeight);
+                       force_capture_pixmap.DrawLayout (pen_gray_force_capture,
+                                       fscPoints.GetTimeInPx(0) - textWidth/2, 0, layout_force_text);
+
                        force_capture_pixmap.DrawLine(pen_gray_force_capture,
-                                       xPx, 4, xPx, force_capture_drawingarea.Allocation.Height - textHeight 
-6);
-               else
+                                       xPx, textHeight, xPx, force_capture_drawingarea.Allocation.Height - 
textHeight -6);
+
+               } else
                        force_capture_pixmap.DrawLine(pen_gray_force_capture_discont,
                                        xPx, 4, xPx, force_capture_drawingarea.Allocation.Height - textHeight 
-6);
        }


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