Changeset 170
- Timestamp:
- 01/24/08 00:44:25 (1 year ago)
- Files:
-
- pytrainer/trunk/pytrainer/gui/drawArea.py (modified) (1 diff)
- pytrainer/trunk/pytrainer/heartrategraph.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pytrainer/trunk/pytrainer/gui/drawArea.py
r169 r170 84 84 for zone in zones: 85 85 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') 87 87 self.canvas = FigureCanvasGTK(self.figure) # a gtk.DrawingArea 88 88 self.canvas.show() pytrainer/trunk/pytrainer/heartrategraph.py
r169 r170 48 48 targethr6 = maxhr 49 49 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")) 55 55 56 56 zones = [zone5,zone4,zone3,zone2,zone1]
