[chronojump] Encoder cross variables fixed overlap on only one point



commit f03dca18e1da7773fba00246ca7bb06c221debd5
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jun 17 12:34:40 2014 +0200

    Encoder cross variables fixed overlap on only one point

 encoder/graph.R |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 3ce9237..1a20cc3 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -1586,7 +1586,9 @@ paintCrossVariables <- function (paf, varX, varY, option, isAlone, title, single
 
                        newPoint = c(x[i], y[i], name) #TODO: do also for ecc-con
                        
-                       overlaps = stroverlapArray(newPoint, nums.print)
+                       overlaps = FALSE
+                       if( ! ( is.na(x[i]) && is.na(y[i]) ) )
+                               overlaps = stroverlapArray(newPoint, nums.print)
                        if(! overlaps)
                                nums.print = rbind(nums.print, newPoint)
                }


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