Changeset 7809:19a67f5948ef in orange


Ignore:
Timestamp:
04/04/11 11:04:45 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
2132ba67e873aef388dc2b11722d72ea1bcec16e
Message:

Can draw dendrogram plots (obtained from distance matrices when data is not present).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/clustering/hierarchical.py

    r7732 r7809  
    502502        width, height, tree_height, heatmap_width, heatmap_height, text_width, font_size = self.layout() 
    503503        heatmap_cell_height = heatmap_height / len(self.labels) 
    504         heatmap_cell_width = heatmap_width / len(self.data.domain.attributes) 
     504 
     505        heatmap_cell_width = 0.0 if not self.data else heatmap_width / len(self.data.domain.attributes) 
    505506         
    506507        self.renderer = self.renderer(width, height) 
Note: See TracChangeset for help on using the changeset viewer.