|
From: | Domenico Conti |
Subject: | [igraph] Help with write_svg function |
Date: | Tue, 13 Apr 2010 17:33:25 +0200 |
Hi, I use the following
code:
outFolder = self.mainView.outputFolderText.GetLabelText() fileName = outFolder+os.sep+ "GRAPH_"+self.fileName+".svg"soglia = int(self.mainView.thresholdText.GetValue()) graph.layout( "kamada_kawai")graph.es[ "edge_color"]=[["red", "black"][value>soglia] for value in graph.es["iFlow"]] for vertex in graph.vs:vertex[ "vertex_color"] = "green"visualStyle = {} visualStyle[ "margin"] = 20visualStyle[ "layout"] = "kamada_kawai"visualStyle[ "edge_color"] = [["red", "black"][value>soglia] for value in graph.es["iFlow"]]visualStyle[ "vertex_color"] = "green"graph.write_svg(fileName, layout= "kamada_kawai")but when I open svg file I can see that my visualStyle are not applied to my graph. Why? |
[Prev in Thread] | Current Thread | [Next in Thread] |