Changeset 4650:92c6911a29fb in orange


Ignore:
Timestamp:
05/15/08 11:39:56 (6 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
9dceabdddea4dbb81819c34b5060b8256650d0f3
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngClustering.py

    r4648 r4650  
    66class DendrogramPlot(object): 
    77    defaultFontSize = 12 
    8     defaultTreeColor = (255, 0, 0) 
     8    defaultTreeColor = (0, 0, 0) 
    99    defaultTextColor = (100, 100, 100) 
    1010    defaultMatrixOutlineColor = (240, 240, 240) 
     
    138138                subClusterPoints = [] 
    139139                for t in tree.branches: 
    140                     point = _drawTree(t, color) 
    141                     self.painter.line([(treeHeight, point[1]), point], fill=color, width=2) 
     140                    point, cc = _drawTree(t, color) 
     141                    self.painter.line([(treeHeight, point[1]), point], fill=cc, width=2) 
    142142                    subClusterPoints.append(point) 
    143143                self.painter.line([(treeHeight, subClusterPoints[0][1]), (treeHeight, subClusterPoints[-1][1])], fill=color, width=2) 
    144                 return (treeHeight, (subClusterPoints[0][1]+subClusterPoints[-1][1])/2) 
     144                return (treeHeight, (subClusterPoints[0][1]+subClusterPoints[-1][1])/2), color 
    145145            else: 
    146146                self.globalHeight+=hAdvance 
    147                 return (treeAreaStart+treeAreaWidth, self.globalHeight-hAdvance/2) 
     147                return (treeAreaStart+treeAreaWidth, self.globalHeight-hAdvance/2), color 
    148148        _drawTree(self.tree) 
    149149        if self.data: 
Note: See TracChangeset for help on using the changeset viewer.