Changeset 8664:7e2d56322ea0 in orange


Ignore:
Timestamp:
08/11/11 12:20:18 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
1078262d32c14a811446171fc63e8328086ef25f
Message:

Support for fitted curves in Parallel Coordinates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWParallelGraphQt.py

    r8632 r8664  
    553553    def cubicPath(self): 
    554554        path = QPainterPath() 
    555         transform = lambda x, y: self.graph_transform().map(QPointF(x,y)) 
    556 #        transform = lambda x, y: QPointF(x, y) 
    557 #        data = [QPointF(transform(x, y)) for x, y in zip(self.xData, self.yData)] 
    558555        data = self.data() 
    559556        for i in range(len(data) / self.attrCount): 
     
    562559                x1, y1 = p 
    563560                x2, y2 = segment[i + 1] 
    564                 path.moveTo(transform(x1, y1)) 
    565                 path.cubicTo(transform(x1 + 0.5, y1), transform(x2 - 0.5, y2), transform(x2, y2)) 
     561                path.moveTo(x1, y1) 
     562                path.cubicTo(QPointF(x1 + 0.5, y1), QPointF(x2 - 0.5, y2), QPointF(x2, y2)) 
    566563        return path         
    567564                 
Note: See TracChangeset for help on using the changeset viewer.