[chronojump] JumpsProfile graph starts at top of pie (12 o'clock)



commit 8e01a2ce8aac4a3849acb2efe1ac87edd85076d7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jul 7 17:18:07 2016 +0200

    JumpsProfile graph starts at top of pie (12 o'clock)

 src/gui/jumpsProfile.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/jumpsProfile.cs b/src/gui/jumpsProfile.cs
index f7d48ff..81908e9 100644
--- a/src/gui/jumpsProfile.cs
+++ b/src/gui/jumpsProfile.cs
@@ -49,7 +49,7 @@ public static class JumpsProfileGraph
                        double acc = 0; //accumulated
                        foreach(JumpsProfileIndex jpi in l_jpi) {
                                double percent = 2 * jpi.Result / sum; //*2 to be in range 0*pi - 2*pi
-                               plotArc(200, 200, 150, acc, acc + percent, g, jpi.Color);
+                               plotArc(200, 200, 150, acc -.5, acc + percent -.5, g, jpi.Color); //-.5 to 
start at top of the pie
                                acc += percent;
                        }
                }


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