~vcs-imports/pytrainer/trunk

« back to all changes in this revision

Viewing changes to pytrainer/recordgraph.py

  • Committer: vud1
  • Date: 2008-02-24 22:17:32 UTC
  • Revision ID: vcs-imports@canonical.com-20080224221732-wsq10xke0w5mo2qs
"pace graph in record view"

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                if value == 0:
72
72
                        return _("Distance (km)"),_("Height (m)"),_("Stage Profile"),"#747400"
73
73
                if value == 1:
74
 
                        return _("Distance (km)"),_("Velocity (Km/h)"),_("velocity"),"#007474"
 
74
                        return _("Distance (km)"),_("Speed (Km/h)"),_("Speed"),"#007474"
75
75
                if value == 2:
 
76
                        return _("Distance (km)"),_("Pace (min/km)"),_("Pace"),"#747400"
 
77
                if value == 3:
76
78
                        return _("Distance (km)"),_("Beats (bpm)"),_("Heart Rate"),"#740074"
77
79
 
78
80
 
86
88
                        if value_selected==1:
87
89
                                yvalue.append(value[3])
88
90
                        if value_selected==2:
 
91
                                try:
 
92
                                        yvalue.append(60/value[3])
 
93
                                except:
 
94
                                        yvalue.append(0)
 
95
                        if value_selected==3:
89
96
                                yvalue.append(value[6])
90
97
                return xvalue,yvalue
91
98