Mercurial Hosting > traffic-intelligence
comparison python/utils.py @ 116:2bf5b76320c0
moved intersection plotting and added markers for scatter plots
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 08 Aug 2011 14:47:30 -0400 |
parents | 550556378466 |
children | 74b1fc68d4df |
comparison
equal
deleted
inserted
replaced
115:550556378466 | 116:2bf5b76320c0 |
---|---|
163 | 163 |
164 class PlottingPropertyValues: | 164 class PlottingPropertyValues: |
165 def __init__(self, values): | 165 def __init__(self, values): |
166 self.values = values | 166 self.values = values |
167 | 167 |
168 def get(self,i): | 168 def __getitem__(self, i): |
169 return self.values[i%len(self.values)] | 169 return self.values[i%len(self.values)] |
170 | 170 |
171 markers = PlottingPropertyValues(['+', '*', ',', '.', 'x', 'D', 's', 'o']) | 171 markers = PlottingPropertyValues(['+', '*', ',', '.', 'x', 'D', 's', 'o']) |
172 scatterMarkers = PlottingPropertyValues(['s','o','^','>','v','<','d','p','h','8','+','x']) | |
172 | 173 |
173 linestyles = PlottingPropertyValues(['-', '--', '-.', ':']) | 174 linestyles = PlottingPropertyValues(['-', '--', '-.', ':']) |
174 | 175 |
175 colors = PlottingPropertyValues('brgmyck') # 'w' | 176 colors = PlottingPropertyValues('brgmyck') # 'w' |
176 | 177 |