diff python/moving.py @ 357:e5fe0e6d48a1

corrected bug computing TTC (resp. pPET) if there is no collision point (resp. crossing zone)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 11 Jul 2013 00:07:47 -0400
parents fa64b2e3a64f
children 619ae9a9a788
line wrap: on
line diff
--- a/python/moving.py	Wed Jul 10 18:22:45 2013 -0400
+++ b/python/moving.py	Thu Jul 11 00:07:47 2013 -0400
@@ -238,9 +238,9 @@
         return (p1-p2).norm2()
 
     @staticmethod
-    def plotAll(points, color='r'):
+    def plotAll(points, **kwargs):
         from matplotlib.pyplot import scatter
-        scatter([p.x for p in points],[p.y for p in points], c=color)
+        scatter([p.x for p in points],[p.y for p in points], **kwargs)
 
 class NormAngle(object):
     '''Alternate encoding of a point, by its norm and orientation'''