[chronojump] forceSensorAnalyze manual: loading a file resets hscale position to avoid out of file RFD calc
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] forceSensorAnalyze manual: loading a file resets hscale position to avoid out of file RFD calc
- Date: Thu, 10 May 2018 10:28:20 +0000 (UTC)
commit ee10f53d53f28c6fad64a286973854915ecaafd0
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu May 10 12:24:41 2018 +0200
forceSensorAnalyze manual: loading a file resets hscale position to avoid out of file RFD calc
src/gui/forceSensorAnalyze.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/forceSensorAnalyze.cs b/src/gui/forceSensorAnalyze.cs
index fc6e7df..acf32f7 100644
--- a/src/gui/forceSensorAnalyze.cs
+++ b/src/gui/forceSensorAnalyze.cs
@@ -520,6 +520,15 @@ public partial class ChronoJumpWindow
force_sensor_ai_drawingarea.Allocation.Height
);
+ /*
+ * position the hscales on the left to avoid loading a csv
+ * with less data rows than current csv and having scales out of the graph
+ //hscale_force_sensor_ai_a.ValuePos = Gtk.PositionType.Left; //doesn't work
+ //hscale_force_sensor_ai_b.ValuePos = Gtk.PositionType.Left; //doesn't work
+ */
+ hscale_force_sensor_ai_a.Value = 1;
+ hscale_force_sensor_ai_b.Value = 1;
+
forceSensorAIPlot();
//ranges should have max value the number of the lines of csv file minus the header
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]