[chronojump] JumpsRjFatigue graph linepoint (was lines) and do not show prediction with just 1 point (Rj of 1 jum
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] JumpsRjFatigue graph linepoint (was lines) and do not show prediction with just 1 point (Rj of 1 jum
- Date: Mon, 21 Mar 2022 12:09:31 +0000 (UTC)
commit b2d058a36e57c71da6a9b0476d7069a7685e6b36
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Mar 21 13:08:43 2022 +0100
JumpsRjFatigue graph linepoint (was lines) and do not show prediction with just 1 point (Rj of 1 jump)
src/gui/cairo/jumpsRjFatigue.cs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/cairo/jumpsRjFatigue.cs b/src/gui/cairo/jumpsRjFatigue.cs
index c9cb17a04..4d5a21325 100644
--- a/src/gui/cairo/jumpsRjFatigue.cs
+++ b/src/gui/cairo/jumpsRjFatigue.cs
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Copyright (C) 2020 Xavier de Blas <xaviblas gmail com>
+ * Copyright (C) 2022 Xavier de Blas <xaviblas gmail com>
*/
using System;
@@ -87,13 +87,15 @@ public class JumpsRjFatigueGraph : CairoXY
paintAxis();
g.SetSourceColor(red);
- plotPredictedLine(predictedLineTypes.STRAIGHT, predictedLineCrossMargins.TOUCH);
+
+ if(point_l.Count > 1)
+ plotPredictedLine(predictedLineTypes.STRAIGHT, predictedLineCrossMargins.TOUCH);
//g.SetSourceColor(black);
g.SetSourceColor(gray99);
divideAndPlotAverage(divideIn);
g.SetSourceColor(black);
- plotRealPoints(PlotTypes.LINES);
+ plotRealPoints(PlotTypes.POINTSLINES);
writeTitle();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]