Mercurial Hosting > traffic-intelligence
diff python/pavement.py @ 432:4970fa64f636
minor
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 28 Nov 2013 00:48:24 -0500 |
parents | 0bcfa49d179a |
children | d40ad901b272 |
line wrap: on
line diff
--- a/python/pavement.py Wed Nov 27 03:22:01 2013 -0500 +++ b/python/pavement.py Thu Nov 28 00:48:24 2013 -0500 @@ -18,15 +18,15 @@ self.data = data self.nMeasures = len(data) - def plot(self, measure, dayRatio = 1.): + def plot(self, measure, options = 'o', dayRatio = 1., **kwargs): from matplotlib.pyplot import plot plot(self.data['jours']/float(dayRatio), - self.data[measure]) + self.data[measure], options, **kwargs) - def plotRetroreflectivity(self, dayRatio = 1.): + def plotRetroreflectivity(self, options = 'o', dayRatio = 1., **kwargs): for i in range(1,7): - self.plot('retro_{}'.format(i), dayRatio) + self.plot('retro_{}'.format(i), options, dayRatio, **kwargs) - def plotDurability(self, dayRatio = 1.): + def plotDurability(self, options = 'o', dayRatio = 1., **kwargs): for i in range(1,7): - self.plot('dur_{}'.format(i), dayRatio) + self.plot('dur_{}'.format(i), options, dayRatio, **kwargs)