Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 343:74e437ab5f11
first version of indicator loading code
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 21 Jun 2013 15:28:59 -0400 |
parents | 9c1818a71c9c |
children | fa64b2e3a64f |
line wrap: on
line diff
--- a/python/moving.py Thu Jun 20 15:47:33 2013 -0400 +++ b/python/moving.py Fri Jun 21 15:28:59 2013 -0400 @@ -399,6 +399,10 @@ def addPosition(self, p): self.addPositionXY(p.x, p.y) + def duplicateLastPosition(self): + self.positions[0].append(self.positions[0][-1]) + self.positions[1].append(self.positions[1][-1]) + @staticmethod def _draw(positions, options = '', withOrigin = False, lastCoordinate = None, timeStep = 1, **kwargs): from matplotlib.pylab import plot