Changeset 170

Show
Ignore:
Timestamp:
01/24/08 00:44:25 (1 year ago)
Author:
vud1
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pytrainer/trunk/pytrainer/gui/drawArea.py

    r169 r170  
    8484                        for zone in zones:       
    8585                                p = self.axis.axhspan(zone[0], zone[1], facecolor=zone[2], alpha=0.5, label=zone[3]) 
    86                 l = self.axis.legend(loc='lower right') 
     86                       l = self.axis.legend(loc='lower right') 
    8787                self.canvas = FigureCanvasGTK(self.figure) # a gtk.DrawingArea 
    8888                self.canvas.show() 
  • pytrainer/trunk/pytrainer/heartrategraph.py

    r169 r170  
    4848                        targethr6 = maxhr 
    4949                 
    50                 zone1 = (targethr1,targethr2,"#ffff99","Moderate activity"
    51                 zone2 = (targethr2,targethr3,"#ffcc00","Weight Control"
    52                 zone3 = (targethr3,targethr4,"#ff9900","Aerobic"
    53                 zone4 = (targethr4,targethr5,"#ff6600","Anaerobic"
    54                 zone5 = (targethr5,targethr6,"#ff0000","VO2 MAX"
     50                zone1 = (targethr1,targethr2,"#ffff99",_("Moderate activity")
     51                zone2 = (targethr2,targethr3,"#ffcc00",_("Weight Control")
     52                zone3 = (targethr3,targethr4,"#ff9900",_("Aerobic")
     53                zone4 = (targethr4,targethr5,"#ff6600",_("Anaerobic")
     54                zone5 = (targethr5,targethr6,"#ff0000",_("VO2 MAX")
    5555                 
    5656                zones = [zone5,zone4,zone3,zone2,zone1]