Example #1
0
def testExportPrincipalImage():
    print('*------- test exportRelationPCAImage --------*')
    t = RandomCBPerformanceTableau(numberOfActions=10,
                                   weightDistribution="equiobjectives")
    g = BipolarOutrankingDigraph(t)
    g.save('test')
    g = Digraph('test')
    g.showRelationTable()
    g.exportPrincipalImage('bipolar', bgcolor='lightblue')
    g.recodeValuation(0, 2)
    g.exportPrincipalImage('monopolar',
                           pictureFormat='xfig',
                           fontcolor='black',
                           fontsize='1.2')