Changeset 1372:346fc53bc178 in orange-bioinformatics


Ignore:
Timestamp:
04/15/11 14:57:09 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
81c1df0da2c30d1844397bfe133774620f4c97ca
Message:

Using a non recursive method to construct the graphics scene's dendrogram hierarchy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWHeatMap.py

    r1304 r1372  
    709709             
    710710            if self.attrCluster and self.ShowClustering: 
    711                 item = HierarchicalClusterItem(self.attrCluster, None, self.scene) 
     711                item = HierarchicalClusterItem.create(self.attrCluster, None, self.scene) 
    712712                item.setSize(self.widths[i], 100.0) 
    713713                item.scale(1.0, -1.0) 
     
    725725                ycoord.append(y) 
    726726                if showClusters: 
    727                     item = HierarchicalClusterItem(self.groupClusters[g], None, self.scene) 
     727                    item = HierarchicalClusterItem.create(self.groupClusters[g], None, self.scene) 
    728728                    item.setSize(self.heights[g], 100.0) 
    729729#                    item.setTransform(QTransform().scale(100.0/item.rect().height(), self.heights[g]/float(len(item.cluster))).\ 
     
    12181218 
    12191219    fn = "/home/marko/pipa4.tab" 
    1220  
     1220     
    12211221    ow.dataset(orange.ExampleTable(fn), 0) 
    12221222    ow.handleNewSignals() 
Note: See TracChangeset for help on using the changeset viewer.