Changeset 75 for trunk/src/line.py

Show
Ignore:
Timestamp:
12/20/07 06:21:14 (4 years ago)
Author:
lgs
Message:

Simplify the Scatter Plot by inheriting from LineChart?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/line.py

    r54 r75  
    3434                x = (xval - self.minxval) * self.xscale 
    3535                y = 1.0 - (yval - self.minyval) * self.yscale 
    36                 point = Point(x, clamp(0.0, 1.0, y), xval, yval, name) 
     36                point = Point(x, y, xval, yval, name) 
    3737                 
    38                 if 0.0 <= point.x <= 1.0: 
     38                if 0.0 <= point.x <= 1.0 and 0.0 <= point.y <= 1.0: 
    3939                    self.points.append(point) 
    4040