Changeset 79 for trunk/src/chart.py

Show
Ignore:
Timestamp:
03/21/08 12:44:24 (4 years ago)
Author:
lgs
Message:

Fix the y ticks when given explicitily. Fix #7, patch by jae_AT_zhar.net

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chart.py

    r70 r79  
    232232                else: 
    233233                    label = tick.label 
    234                 pos = self.yscale * (tick.v - self.minyval) 
     234                pos = 1.0 - (self.yscale * (tick.v - self.minyval)) 
    235235                if 0.0 <= pos <= 1.0: 
    236236                    self.yticks.append((pos, label))