[chronojump] On side compare speed, power, ... 0 abline is shown



commit 7f7c07dabea2964511d7369150cdf379da3f87d0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu May 14 16:33:23 2015 +0200

    On side compare speed, power, ... 0 abline is shown

 encoder/call_graph.R |    3 ---
 encoder/graph.R      |    4 +++-
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/encoder/call_graph.R b/encoder/call_graph.R
index 263f0a1..54f81b9 100644
--- a/encoder/call_graph.R
+++ b/encoder/call_graph.R
@@ -77,7 +77,4 @@ while(TRUE) {
                        
        write("received a continue signal", stderr())
        options <- scan(optionsFile, comment.char="#", what=character(), sep="\n")
-       
-       #TODO 1: check if all the Output2, SpecialData, ... variables have to be reassigned
-       #TODO 2: check if neuromuscularProfile should be loaded
 }
diff --git a/encoder/graph.R b/encoder/graph.R
index 01f0024..9fa284e 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -895,9 +895,11 @@ paint <- function(displacement, eccon, xmin, xmax, yrange, knRanges, superpose,
                        ylim = knRanges$accely
 
                
+               #always (single or side) show 0 line
+               abline(h=0,lty=3,col="black")
+               
                #plot the speed axis
                if(showAxes & showSpeed) {
-                       abline(h=0,lty=3,col="black")
                        if(eccon == "c") {
                                axis(4, at=c(min(axTicks(4)),0,max(axTicks(4)),meanSpeedC),
                                     labels=c(min(axTicks(4)),0,max(axTicks(4)),


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