web/views/plots.py
branchtls-sprint
changeset 1133 8a409ea0c9ec
parent 1132 96752791c2b6
child 1886 f0e28ddba7c5
--- a/web/views/plots.py	Mon Mar 23 17:55:59 2009 +0100
+++ b/web/views/plots.py	Mon Mar 23 18:13:34 2009 +0100
@@ -56,7 +56,7 @@
             abscisses = [row[0] for row in self.rset]
             courbes = []
             nbcols = len(self.rset.rows[0])
-            for col in range(1,nbcols):
+            for col in xrange(1, nbcols):
                 courbe = [row[col] for row in self.rset]
                 courbes.append(courbe)
             if not courbes:
@@ -71,7 +71,7 @@
             except ValueError:
                 xlabels = abscisses
                 abscisses = range(len(xlabels))
-            for idx,courbe in enumerate(courbes):
+            for idx, courbe in enumerate(courbes):
                 ax.plot(abscisses, courbe, '%sv-' % colors[idx], label=self.rset.description[0][idx+1])
             ax.autoscale_view()
             alldata = flatten(courbes)