[chronojump/michrolab] RaceAnalyzer capture graph show a>= line from top to down and discontinuous
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] RaceAnalyzer capture graph show a>= line from top to down and discontinuous
- Date: Fri, 5 Aug 2022 09:19:42 +0000 (UTC)
commit a5588ddffd13cfaf0434d1c3e159684375387d16
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jul 26 13:28:47 2022 +0200
RaceAnalyzer capture graph show a>= line from top to down and discontinuous
src/gui/cairo/raceAnalyzer.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/cairo/raceAnalyzer.cs b/src/gui/cairo/raceAnalyzer.cs
index bc302a7a5..53a88cec5 100644
--- a/src/gui/cairo/raceAnalyzer.cs
+++ b/src/gui/cairo/raceAnalyzer.cs
@@ -342,9 +342,12 @@ public class CairoGraphRaceAnalyzer : CairoXY
*/
//above the graph with short top line
g.SetSourceColor(black);
+ g.Save();
+ g.SetDash(new double[]{1, 2}, 0);
g.MoveTo (xTimeAtEnoughAccelMark, topMargin * 2/3);
- g.LineTo (xTimeAtEnoughAccelMark, topMargin);
+ g.LineTo (xTimeAtEnoughAccelMark, graphHeight -bottomMargin);
g.Stroke ();
+ g.Restore ();
printText(xTimeAtEnoughAccelMark+2, topMargin * 3/4,
0, textHeight-3, string.Format("a >= {0} m/s^2 at {1} s",
minAccel, Math.Round(timeAtEnoughAccelMark/1000000.0,
3)),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]