Changeset 7360:cc06196397fb in orange


Ignore:
Timestamp:
02/04/11 00:16:12 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
ae6e443efb79626097971fc07c9c7667489dd509
Message:
  • fixed a test case (changed DendrogramPlot class interface a loooong time ago)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/modules/hclust-test2.py

    r5795 r7360  
    1717# root.mapping.objects = [str(ex.getclass()) for ex in data] 
    1818d = DendrogramPlot(root, data=data, labels=[str(ex.getclass()) for ex in data], width=500, height=2000) 
    19 d.setMatrixColorScheme((0, 255, 0), (255, 0, 0)) 
     19d.set_matrix_color_schema([(0, 255, 0), (255, 0, 0)], 0.0, 1.0) 
    2020# d.setClusterColors({root.left:(0,255,0), root.right:(0,0,255)}) 
    2121d.plot("graph.png") 
     
    2323orderLeaves(root, matrix) 
    2424print "Sum:", sum([matrix[root.mapping[i], root.mapping[i+1]] for i in range(len(root.mapping)-1)]) 
    25 d = DendrogramPlot(root, data=data, labels=[str(ex.getclass()) for ex in data], width=500, height=2000, lineWidth=1) 
    26 d.setMatrixColorScheme((0, 255, 0), (255, 0, 0)) 
     25d = DendrogramPlot(root, data=data, labels=[str(ex.getclass()) for ex in data], width=500, height=2000) 
     26d.set_matrix_color_schema([(0, 255, 0), (255, 0, 0)], 0.0, 1.0) 
    2727d.plot("tmp.png") 
Note: See TracChangeset for help on using the changeset viewer.