|
From: | Tamas Nepusz |
Subject: | Re: [igraph] keep vertex positions stable when doing fr plots |
Date: | Thu, 18 Dec 2008 23:13:10 +0000 |
Hi Matteo,
plot.add(self.g, layout="fr", margin=(20,20,20,20), vertex_size=[s * 20 + 7 for s in self.g.vs['size']], seed = self.g.vs['fr_seed_coords'])The seed= keyword argument isn't passed on to the Fruchterman-Reingold layout algorithm if you do it this way. Try to calculate the layout separately:but it doesn't work, what am I doing wrong?
real_layout = self.g.layout("fr", seed = self.g.vs['fr_seed_coords']) plot.add(self.g, layout=real_layout, ...)By the way, I checked your code related to the integration of PyGtk and igraph for graph plotting. Nice job! In fact, one of the reasons why I chose Cairo for plotting was that I knew that it can be integrated with GTK somehow, but I never had the time to figure out how to do it exactly, so thanks again!
-- Tamas
[Prev in Thread] | Current Thread | [Next in Thread] |